sd/qa/unit/data/ppt/pass/large-bounding-box.ppt |binary svx/source/svdraw/svdopath.cxx | 2 ++ 2 files changed, 2 insertions(+)
New commits: commit 1264964de70c0b1d9442005f731f14c4635c4579 Author: Caolán McNamara <[email protected]> Date: Fri Sep 22 16:56:39 2017 +0100 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 <[email protected]> Tested-by: Caolán McNamara <[email protected]> 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 Binary files /dev/null and b/sd/qa/unit/data/ppt/pass/large-bounding-box.ppt 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);
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
