From e408d9ca82358e38fd2cffaa23976bcb44c81c80 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 15 Mar 2008 03:28:49 +0000 Subject: [PATCH] fix crash in DoGetBestSize() if default widths are used (corrects patch 1386199 applied in r45202) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/statbr95.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index f06e0e7c05..d7f26724f6 100644 --- a/src/msw/statbr95.cpp +++ b/src/msw/statbr95.cpp @@ -319,7 +319,7 @@ wxSize wxStatusBar95::DoGetBestSize() const : DEFAULT_FIELD_WIDTH; if ( widthField >= 0 ) { - width += m_statusWidths[i]; + width += widthField; } else { -- 2.50.0