diff options
Diffstat (limited to 'sc/source/ui/drawfunc/fuconarc.cxx')
-rw-r--r-- | sc/source/ui/drawfunc/fuconarc.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/drawfunc/fuconarc.cxx b/sc/source/ui/drawfunc/fuconarc.cxx index a0b2bed7110d..e7507b6e6703 100644 --- a/sc/source/ui/drawfunc/fuconarc.cxx +++ b/sc/source/ui/drawfunc/fuconarc.cxx @@ -74,8 +74,14 @@ sal_Bool FuConstArc::MouseButtonDown( const MouseEvent& rMEvt ) if ( rMEvt.IsLeft() && !pView->IsAction() ) { Point aPnt( pWindow->PixelToLogic( rMEvt.GetPosPixel() ) ); + // Hack to align object to nearest grid position where object + // would be anchored ( if it were cell anchored ) + // Get grid offset for current position ( note: aPnt is + // also adjusted ) + Point aGridOff = CurrentGridSyncOffsetAndPos( aPnt ); pWindow->CaptureMouse(); pView->BegCreateObj( aPnt ); + pView->GetCreateObj()->SetGridOffset( aGridOff ); bReturn = sal_True; } return bReturn; |