tdf#97919 Also resize ole objects proportionally by default

Change-Id: I1c3b13aa4cb0127451353f20179f39b6eebe12ec
Reviewed-on: https://gerrit.libreoffice.org/23284
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
This commit is contained in:
Samuel Mehrbrodt
2016-03-15 19:22:31 +01:00
parent ddff603053
commit 4af2f26a95
3 changed files with 6 additions and 3 deletions

View File

@@ -298,7 +298,8 @@ bool FuPoor::doConstructOrthogonal() const
{
sal_uInt16 aObjIdentifier = rMarkList.GetMark(0)->GetMarkedSdrObj()->GetObjIdentifier();
return aObjIdentifier == OBJ_GRAF ||
aObjIdentifier == OBJ_MEDIA;
aObjIdentifier == OBJ_MEDIA ||
aObjIdentifier == OBJ_OLE2;
}
}
else if (aSfxRequest.GetSlot() == SID_DRAW_XPOLYGON || aSfxRequest.GetSlot() == SID_DRAW_XPOLYGON_NOFILL)

View File

@@ -1134,7 +1134,8 @@ bool FuPoor::doConstructOrthogonal() const
SdrMark* pMark = rMarkList.GetMark(0);
sal_uInt16 aObjIdentifier = pMark->GetMarkedSdrObj()->GetObjIdentifier();
bIsMediaSelected = aObjIdentifier == OBJ_GRAF ||
aObjIdentifier == OBJ_MEDIA;
aObjIdentifier == OBJ_MEDIA ||
aObjIdentifier == OBJ_OLE2;
}
}

View File

@@ -4080,7 +4080,8 @@ void SwEditWin::MouseMove(const MouseEvent& _rMEvt)
break;
bool bIsMediaSelected = rSh.GetSelectionType() & nsSelectionType::SEL_GRF ||
rSh.GetSelectionType() & nsSelectionType::SEL_MEDIA;
rSh.GetSelectionType() & nsSelectionType::SEL_MEDIA ||
rSh.GetSelectionType() & nsSelectionType::SEL_OLE;
bool bisResize = g_eSdrMoveHdl != HDL_MOVE;
if (pSdrView)