]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/sashwin.cpp
Use GetFont not m_font for GetCharHeight
[wxWidgets.git] / src / generic / sashwin.cpp
index 3581f95e065311557929e58483f9b7b41164e6c0..945582381a1df054bf5c540ce89116056c0241c3 100644 (file)
@@ -276,11 +276,11 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
 
         dragRect = wxRect(x, y, newWidth, newHeight);
 
-        wxSashEvent event(GetId(), edge);
-        event.SetEventObject(this);
-        event.SetDragStatus(status);
-        event.SetDragRect(dragRect);
-        GetEventHandler()->ProcessEvent(event);
+        wxSashEvent eventSash(GetId(), edge);
+        eventSash.SetEventObject(this);
+        eventSash.SetDragStatus(status);
+        eventSash.SetDragRect(dragRect);
+        GetEventHandler()->ProcessEvent(eventSash);
     }
     else if ( event.LeftUp() )
     {