summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-09-22 16:56:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-09-23 16:48:40 +0200
commit1264964de70c0b1d9442005f731f14c4635c4579 (patch)
tree4cefc3249207f2bf168cc1df5d7469b5f17010ca
parent0656bcf98abfda155df0d318a943459d152333a2 (diff)
ofz#3467 mul and div are the same
so can just pass the values through Change-Id: I793ea0fd5fec00fc942b3b5a5c17c483ec2df267 Reviewed-on: https://gerrit.libreoffice.org/42675 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/qa/unit/data/ppt/pass/large-bounding-box.pptbin0 -> 5890 bytes
-rw-r--r--svx/source/svdraw/svdopath.cxx2
2 files changed, 2 insertions, 0 deletions
diff --git a/sd/qa/unit/data/ppt/pass/large-bounding-box.ppt b/sd/qa/unit/data/ppt/pass/large-bounding-box.ppt
new file mode 100644
index 000000000000..6b25c95b451b
--- /dev/null
+++ b/sd/qa/unit/data/ppt/pass/large-bounding-box.ppt
Binary files differ
diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx
index c28d43dd90c5..9c19d014e106 100644
--- a/svx/source/svdraw/svdopath.cxx
+++ b/svx/source/svdraw/svdopath.cxx
@@ -2436,6 +2436,8 @@ void SdrPathObj::NbcSetSnapRect(const tools::Rectangle& rRect)
long nDivY = aOld.Bottom() - aOld.Top();
if ( nDivX == 0 ) { nMulX = 1; nDivX = 1; }
if ( nDivY == 0 ) { nMulY = 1; nDivY = 1; }
+ if ( nDivX == nMulX ) { nMulX = 1; nDivX = 1; }
+ if ( nDivY == nMulY ) { nMulY = 1; nDivY = 1; }
Fraction aX(nMulX,nDivX);
Fraction aY(nMulY,nDivY);
NbcResize(aOld.TopLeft(), aX, aY);