[Libreoffice-commits] core.git: sd/source
Trent MacAlpine
tmacalp at gmail.com
Fri Apr 24 10:32:35 PDT 2015
sd/source/ui/func/fudraw.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 18a592a5bfc3c4592b7118cceae774fcc00ae94d
Author: Trent MacAlpine <tmacalp at gmail.com>
Date: Thu Apr 23 23:40:25 2015 -0400
tdf#89758 Interactive crop preview shouldn't scale proportionally
Add extra check to keep images proportionally scaling by default
from affecting interactive crop preview rectangle.
Change-Id: I2b15bbc8628934e3d3cf17927885ede890505cd3
Reviewed-on: https://gerrit.libreoffice.org/15505
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85 at hotmail.com>
diff --git a/sd/source/ui/func/fudraw.cxx b/sd/source/ui/func/fudraw.cxx
index be9a112..8863f2f 100644
--- a/sd/source/ui/func/fudraw.cxx
+++ b/sd/source/ui/func/fudraw.cxx
@@ -165,7 +165,12 @@ bool FuDraw::MouseButtonDown(const MouseEvent& rMEvt)
if (rMarkList.GetMarkCount() == 1)
{
SdrMark* pMark = rMarkList.GetMark(0);
- bIsImageSelected = pMark->GetMarkedSdrObj()->GetObjIdentifier() == OBJ_GRAF;
+ // tdf#89758 Extra check to avoid interactive crop preview from being
+ // proportionally scaled by default.
+ if (mpView->GetDragMode() != SDRDRAG_CROP)
+ {
+ bIsImageSelected = pMark->GetMarkedSdrObj()->GetObjIdentifier() == OBJ_GRAF;
+ }
}
}
More information about the Libreoffice-commits
mailing list