From 705d0c55ac4048cd97c5a313c2a2b2d50b0591df Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 22 Jan 2010 22:01:58 +0000 Subject: [PATCH] Fix harmless g++ 4.3 warning about "suggested braces". git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@63218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 466cff60e8..0645e906ed 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2732,10 +2732,12 @@ void wxListMainWindow::Thaw() wxCHECK_RET( m_freezeCount > 0, _T("thawing unfrozen list control?") ); if ( --m_freezeCount == 0 ) + { if (m_dirty) RecalculatePositions(); else Refresh(); + } } void wxListMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )