diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-22 16:56:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-23 16:48:40 +0200 |
commit | 1264964de70c0b1d9442005f731f14c4635c4579 (patch) | |
tree | 4cefc3249207f2bf168cc1df5d7469b5f17010ca /svx | |
parent | 0656bcf98abfda155df0d318a943459d152333a2 (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>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdopath.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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); |