From ac6704fa9b2240b3270132715ff697621603cbe2 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 14 Mar 2008 15:55:09 +0000 Subject: [PATCH] fix for infinite sizing loop (partial patch 1907189) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/notebook.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gtk/notebook.cpp b/src/gtk/notebook.cpp index a4cb28ad2e..1fd65e9e33 100644 --- a/src/gtk/notebook.cpp +++ b/src/gtk/notebook.cpp @@ -122,9 +122,10 @@ static void gtk_page_size_callback( GtkWidget *WXUNUSED(widget), GtkAllocation* if (g_isIdle) wxapp_install_idle_handler(); - if ((win->m_x == alloc->x) && - (win->m_y == alloc->y) && - (win->m_width == alloc->width) && + // wxWindowGTK::SetSize() ignores position if parent does not have + // m_wxwindow, and infinite sizing loop can result if position is part + // of this check. See patch 1907189. + if ((win->m_width == alloc->width) && (win->m_height == alloc->height)) { return;