Added some casts in hopes of fixing HP compilation problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -73,6 +73,7 @@ void wxSashWindow::Init()
|
||||
m_maximumPaneSizeY = 10000;
|
||||
m_sashCursorWE = new wxCursor(wxCURSOR_SIZEWE);
|
||||
m_sashCursorNS = new wxCursor(wxCURSOR_SIZENS);
|
||||
m_mouseCaptured = FALSE;
|
||||
|
||||
// Eventually, we'll respond to colour change messages
|
||||
InitColours();
|
||||
@@ -106,6 +107,7 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
|
||||
if (event.LeftDown())
|
||||
{
|
||||
CaptureMouse();
|
||||
m_mouseCaptured = TRUE;
|
||||
|
||||
if ( sashHit != wxSASH_NONE )
|
||||
{
|
||||
@@ -144,7 +146,10 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
|
||||
else if ( event.LeftUp() && m_dragMode == wxSASH_DRAG_LEFT_DOWN )
|
||||
{
|
||||
// Wasn't a proper drag
|
||||
ReleaseMouse();
|
||||
if (m_mouseCaptured)
|
||||
ReleaseMouse();
|
||||
m_mouseCaptured = FALSE;
|
||||
|
||||
wxScreenDC::EndDrawingOnTop();
|
||||
m_dragMode = wxSASH_DRAG_NONE;
|
||||
m_draggingEdge = wxSASH_NONE;
|
||||
@@ -153,7 +158,10 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
|
||||
{
|
||||
// We can stop dragging now and see what we've got.
|
||||
m_dragMode = wxSASH_DRAG_NONE;
|
||||
ReleaseMouse();
|
||||
if (m_mouseCaptured)
|
||||
ReleaseMouse();
|
||||
m_mouseCaptured = FALSE;
|
||||
|
||||
// Erase old tracker
|
||||
DrawSashTracker(m_draggingEdge, m_oldX, m_oldY);
|
||||
|
||||
@@ -273,7 +281,9 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
|
||||
}
|
||||
else if ( event.LeftUp() )
|
||||
{
|
||||
ReleaseMouse();
|
||||
if (m_mouseCaptured)
|
||||
ReleaseMouse();
|
||||
m_mouseCaptured = FALSE;
|
||||
}
|
||||
else if (event.Moving() && !event.Dragging())
|
||||
{
|
||||
|
Reference in New Issue
Block a user