diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-10-23 17:29:14 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-10-23 18:34:36 +0200 |
commit | dc90c5a3955a33e1ae5216640021866be392f2d3 (patch) | |
tree | 81ef046a964e8612c116eb1d27838a52b927767c /svx/source/svdraw/svdoashp.cxx | |
parent | b66aad4084760f3f43a9db580d637b43d5e38e24 (diff) |
Fraction: Revert "just check if the fraction is < 0"
This reverts commit 8afab33d161ddd39a3e6094b5daa08b156ef0421.
Diffstat (limited to 'svx/source/svdraw/svdoashp.cxx')
-rw-r--r-- | svx/source/svdraw/svdoashp.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index 67cc776b8d14..b54e272c79d6 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -1580,11 +1580,13 @@ void SdrObjCustomShape::NbcResize( const Point& rRef, const boost::rational<long if ( ( xFact.numerator() != xFact.denominator() ) || ( yFact.numerator()!= yFact.denominator() ) ) { - if ( xFact < 0 ) + if ( ( ( xFact.numerator() < 0 ) && ( xFact.denominator() > 0 ) ) || + ( ( xFact.numerator() > 0 ) && ( xFact.denominator() < 0 ) ) ) { SetMirroredX( IsMirroredX() == false ); } - if ( yFact < 0 ) + if ( ( ( yFact.numerator() < 0 ) && ( yFact.denominator() > 0 ) ) || + ( ( yFact.numerator() > 0 ) && ( yFact.denominator() < 0 ) ) ) { SetMirroredY( IsMirroredY() == false ); } |