]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/vscroll.cpp
don't assume there's always an active wxEventLoop instance
[wxWidgets.git] / src / generic / vscroll.cpp
index 59a65f856e03ac1c86b0782809873b8b938f67bb..a7d388a9bf4bb4af08507786f1c8db052e3a87b4 100644 (file)
@@ -307,7 +307,7 @@ bool wxVScrolledWindow::Layout()
         // adjust the sizer dimensions/position taking into account the
         // virtual size and scrolled position of the window.
 
-        int w, h;
+        int w = 0, h = 0;
         GetVirtualSize(&w, &h);
 
         // x is always 0 so no variable needed