diff options
Diffstat (limited to 'sw/source/uibase/ribbar/conpoly.cxx')
-rw-r--r-- | sw/source/uibase/ribbar/conpoly.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/ribbar/conpoly.cxx b/sw/source/uibase/ribbar/conpoly.cxx index 3a8df72e21a0..eb1125fca610 100644 --- a/sw/source/uibase/ribbar/conpoly.cxx +++ b/sw/source/uibase/ribbar/conpoly.cxx @@ -35,9 +35,8 @@ ConstPolygon::ConstPolygon(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* p bool ConstPolygon::MouseButtonDown(const MouseEvent& rMEvt) { - bool bReturn; - - if ((bReturn = SwDrawBase::MouseButtonDown(rMEvt))) + bool bReturn = SwDrawBase::MouseButtonDown(rMEvt); + if (bReturn) aLastPos = rMEvt.GetPosPixel(); return bReturn; |