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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user