sc/source/ui/drawfunc/fupoor.cxx |   10 ++++++++++
 1 file changed, 10 insertions(+)

New commits:
commit 425711faddb208efa97e869b885919fff9e570d0
Author: Samuel Mehrbrodt <s.mehrbr...@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;
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to