a workaround for Mac update problems

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-06-01 15:48:10 +00:00
parent 0d1cb8cb29
commit b544a27802

View File

@@ -164,8 +164,8 @@ void wxVScrolledWindow::SetLineCount(size_t count)
count/2 + NUM_LINES_TO_SAMPLE/2);
// use the height of the lines we looked as the average
m_heightTotal = ((float)m_heightTotal / (3*NUM_LINES_TO_SAMPLE)) *
m_lineMax;
m_heightTotal = (wxCoord)
(((float)m_heightTotal / (3*NUM_LINES_TO_SAMPLE)) * m_lineMax);
}
@@ -354,5 +354,9 @@ void wxVScrolledWindow::OnScroll(wxScrollWinEvent& event)
}
ScrollToLine(lineFirstNew);
#ifdef __WXMAC__
Update();
#endif // __WXMAC__
}