X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e115ed2c71e11ea37c83ed44f3553523ec16560..8981608c698da2cb217b6cdeffad77011a99bf7c:/src/generic/sashwin.cpp diff --git a/src/generic/sashwin.cpp b/src/generic/sashwin.cpp index 945582381a..b9e554da14 100644 --- a/src/generic/sashwin.cpp +++ b/src/generic/sashwin.cpp @@ -31,6 +31,7 @@ #include #include "wx/dcscreen.h" +#include "wx/dcclient.h" #include "wx/sashwin.h" #include "wx/laywin.h" @@ -94,7 +95,7 @@ void wxSashWindow::OnPaint(wxPaintEvent& WXUNUSED(event)) void wxSashWindow::OnMouseEvent(wxMouseEvent& event) { - wxCoord x, y; + wxCoord x = 0, y = 0; event.GetPosition(&x, &y); wxSashEdgePosition sashHit = SashHitTest(x, y);