Kaydet (Commit) 84acb10f authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

fdo#71669 Poportionally scale images by default in Writer

When holding "shift" at resizing, objects are resized proportional.
With this commit, proportional resizing for images is the default
behavior and "free" resizing is enabled when holding "shift". The
behavior for other objects is unchanged.

Change-Id: I484455a8bd3edb879c75b9a27988cebeb843678b
üst 3ec96dc5
......@@ -4012,15 +4012,24 @@ void SwEditWin::MouseMove(const MouseEvent& _rMEvt)
if( bIsDocReadOnly )
break;
bool bIsSelectionGfx = rSh.GetSelectionType() & nsSelectionType::SEL_GRF;
bool bisResize = eSdrMoveHdl != HDL_MOVE;
if ( rMEvt.IsShift() )
{
pSdrView->SetOrtho(true);
pSdrView->SetAngleSnapEnabled(sal_True);
pSdrView->SetAngleSnapEnabled(!bIsSelectionGfx);
if (bisResize)
pSdrView->SetOrtho(!bIsSelectionGfx);
else
pSdrView->SetOrtho(true);
}
else
{
pSdrView->SetOrtho(false);
pSdrView->SetAngleSnapEnabled(sal_False);
pSdrView->SetAngleSnapEnabled(bIsSelectionGfx);
if (bisResize)
pSdrView->SetOrtho(bIsSelectionGfx);
else
pSdrView->SetOrtho(false);
}
rSh.Drag( &aDocPt, rMEvt.IsShift() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment