diff options
author | Samuel Mehrbrodt <s.mehrbrodt@gmail.com> | 2014-09-27 00:44:52 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <s.mehrbrodt@gmail.com> | 2014-09-27 00:45:27 +0200 |
commit | 425711faddb208efa97e869b885919fff9e570d0 (patch) | |
tree | 39e3c898f5b0e16c52b785b23e948b26c1004708 | |
parent | ed4791eb2d516e2ce509c13ae63c95dd6bcb52c4 (diff) |
fdo#83808 Scale images proportionally by default in Calc
Change-Id: I979d721d2e6617a1214b70138660d657eb1e46b1
-rw-r--r-- | sc/source/ui/drawfunc/fupoor.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/ui/drawfunc/fupoor.cxx b/sc/source/ui/drawfunc/fupoor.cxx index 9a331363c95d..dfad06aa87c7 100644 --- a/sc/source/ui/drawfunc/fupoor.cxx +++ b/sc/source/ui/drawfunc/fupoor.cxx @@ -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; } |