From b544a27802734a8d45a8e59c9563e1d9eb64c10c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 1 Jun 2003 15:48:10 +0000 Subject: [PATCH] a workaround for Mac update problems git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/vscroll.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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__ } -- 2.47.2