iterations.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33915
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- Added wxLaunchDefaultBrowser.
- Added wxLaunchDefaultBrowser.
+All (GUI):
+
+- Fixed potential infinite loop when adjusting wxScrolledWindow scrollbars.
+
wxMSW:
- Fixed erroneous selection of content in wxComboBox when within a wxStaticBox
wxMSW:
- Fixed erroneous selection of content in wxComboBox when within a wxStaticBox
// it here for now but it would be better to ensure that all ports
// generate EVT_SIZE when scrollbars [dis]appear, emulating it if
// necessary, and remove it later
// it here for now but it would be better to ensure that all ports
// generate EVT_SIZE when scrollbars [dis]appear, emulating it if
// necessary, and remove it later
+ // JACS: Stop potential infinite loop by limiting number of iterations
+ int iterationCount = 0;
+ const int iterationMax = 5;
GetTargetSize(&w, 0);
// scroll lines per page: if 0, no scrolling is needed
GetTargetSize(&w, 0);
// scroll lines per page: if 0, no scrolling is needed
oldh = h;
GetTargetSize( &w, &h );
oldh = h;
GetTargetSize( &w, &h );
- } while ( w != oldw || h != oldh );
+ } while ( (w != oldw || h != oldh) && (iterationCount < iterationMax) );
#ifdef __WXMOTIF__
// Sorry, some Motif-specific code to implement a backing pixmap
#ifdef __WXMOTIF__
// Sorry, some Motif-specific code to implement a backing pixmap