CWS-TOOLING: integrate CWS ooo33gsl05

This commit is contained in:
Kurt Zenker
2010-08-18 13:23:34 +02:00

View File

@@ -1063,8 +1063,7 @@ void SdrMarkView::AddDragModeHdl(SdrDragMode eMode)
/** handle mouse over effects for handles */ /** handle mouse over effects for handles */
BOOL SdrMarkView::MouseMove(const MouseEvent& rMEvt, Window* pWin) BOOL SdrMarkView::MouseMove(const MouseEvent& rMEvt, Window* pWin)
{ {
const ULONG nHdlCount = aHdl.GetHdlCount(); if(aHdl.GetHdlCount())
if( nHdlCount )
{ {
SdrHdl* pMouseOverHdl = 0; SdrHdl* pMouseOverHdl = 0;
if( !rMEvt.IsLeaveWindow() && pWin ) if( !rMEvt.IsLeaveWindow() && pWin )
@@ -1074,6 +1073,8 @@ BOOL SdrMarkView::MouseMove(const MouseEvent& rMEvt, Window* pWin)
} }
// notify last mouse over handle that he lost the mouse // notify last mouse over handle that he lost the mouse
const ULONG nHdlCount = aHdl.GetHdlCount();
for(ULONG nHdl = 0; nHdl < nHdlCount; nHdl++ ) for(ULONG nHdl = 0; nHdl < nHdlCount; nHdl++ )
{ {
SdrHdl* pCurrentHdl = GetHdl(nHdl); SdrHdl* pCurrentHdl = GetHdl(nHdl);