Kaydet (Commit) 425711fa authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

fdo#83808 Scale images proportionally by default in Calc

Change-Id: I979d721d2e6617a1214b70138660d657eb1e46b1
üst ed4791eb
......@@ -327,6 +327,16 @@ void FuPoor::ImpForceQuadratic(Rectangle& rRect)
// #i33136#
bool FuPoor::doConstructOrthogonal() const
{
// Check whether an image is selected -> they should scale proportionally
if (pView->AreObjectsMarked())
{
const SdrMarkList& rMarkList = pView->GetMarkedObjectList();
if (rMarkList.GetMarkCount() == 1)
{
if (rMarkList.GetMark(0)->GetMarkedSdrObj()->GetObjIdentifier() == OBJ_GRAF)
return true;
}
}
return false;
}
......
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