[Libreoffice-commits] core.git: sc/source
Samuel Mehrbrodt
s.mehrbrodt at gmail.com
Fri Sep 26 15:46:33 PDT 2014
sc/source/ui/drawfunc/fupoor.cxx | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit 425711faddb208efa97e869b885919fff9e570d0
Author: Samuel Mehrbrodt <s.mehrbrodt at gmail.com>
Date: Sat Sep 27 00:44:52 2014 +0200
fdo#83808 Scale images proportionally by default in Calc
Change-Id: I979d721d2e6617a1214b70138660d657eb1e46b1
diff --git a/sc/source/ui/drawfunc/fupoor.cxx b/sc/source/ui/drawfunc/fupoor.cxx
index 9a33136..dfad06a 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;
}
More information about the Libreoffice-commits
mailing list