From: Vadim Zeitlin Date: Sun, 1 Jun 2003 15:48:10 +0000 (+0000) Subject: a workaround for Mac update problems X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b544a27802734a8d45a8e59c9563e1d9eb64c10c a workaround for Mac update problems git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/vscroll.cpp b/src/generic/vscroll.cpp index e7cb8cfa06..0d71a2fc67 100644 --- a/src/generic/vscroll.cpp +++ b/src/generic/vscroll.cpp @@ -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__ }