diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 8ef7d9bfce..a3283de883 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2450,8 +2450,10 @@ void wxWindowGTK::Init() m_hAdjust = (GtkAdjustment*) NULL; m_vAdjust = (GtkAdjustment*) NULL; - m_oldHorizontalPos = 0.0; + m_oldHorizontalPos = m_oldVerticalPos = 0.0; + m_oldClientWidth = + m_oldClientHeight = 0; m_resizing = FALSE; m_widgetStyle = (GtkStyle*) NULL; diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 8ef7d9bfce..a3283de883 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -2450,8 +2450,10 @@ void wxWindowGTK::Init() m_hAdjust = (GtkAdjustment*) NULL; m_vAdjust = (GtkAdjustment*) NULL; - m_oldHorizontalPos = 0.0; + m_oldHorizontalPos = m_oldVerticalPos = 0.0; + m_oldClientWidth = + m_oldClientHeight = 0; m_resizing = FALSE; m_widgetStyle = (GtkStyle*) NULL;