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)
|
if (g_isIdle)
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
|
||||||
if ((win->m_x == alloc->x) &&
|
// wxWindowGTK::SetSize() ignores position if parent does not have
|
||||||
(win->m_y == alloc->y) &&
|
// m_wxwindow, and infinite sizing loop can result if position is part
|
||||||
(win->m_width == alloc->width) &&
|
// of this check. See patch 1907189.
|
||||||
|
if ((win->m_width == alloc->width) &&
|
||||||
(win->m_height == alloc->height))
|
(win->m_height == alloc->height))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user