X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a851b11c2226c769037e5487a878e280f12e3ba..8b713759b615fc1530d1f476f37d6d213e7934a5:/src/generic/datavgen.cpp diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index e84b872f4b..c9ca4db621 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -10,6 +10,10 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + #if wxUSE_DATAVIEWCTRL #include "wx/dataview.h" @@ -19,15 +23,15 @@ #ifndef WX_PRECOMP #include "wx/sizer.h" #include "wx/log.h" + #include "wx/dcclient.h" + #include "wx/timer.h" + #include "wx/settings.h" #endif #include "wx/stockitem.h" -#include "wx/dcclient.h" #include "wx/calctrl.h" #include "wx/popupwin.h" #include "wx/renderer.h" -#include "wx/timer.h" -#include "wx/settings.h" #ifdef __WXMSW__ #include "wx/msw/wrapwin.h" @@ -1142,7 +1146,7 @@ size_t wxDataViewMainWindow::GetLastVisibleRow() wxSize client_size = GetClientSize(); m_owner->CalcUnscrolledPosition( client_size.x, client_size.y, &client_size.x, &client_size.y ); - return wxMin( GetRowCount()-1, (client_size.y/m_lineHeight)+1 ); + return wxMin( GetRowCount()-1, ((unsigned)client_size.y/m_lineHeight)+1 ); } size_t wxDataViewMainWindow::GetRowCount()