summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdotxtr.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-10-23 17:29:14 +0200
committerJan Holesovsky <kendy@collabora.com>2014-10-23 18:34:36 +0200
commitdc90c5a3955a33e1ae5216640021866be392f2d3 (patch)
tree81ef046a964e8612c116eb1d27838a52b927767c /svx/source/svdraw/svdotxtr.cxx
parentb66aad4084760f3f43a9db580d637b43d5e38e24 (diff)
Fraction: Revert "just check if the fraction is < 0"
This reverts commit 8afab33d161ddd39a3e6094b5daa08b156ef0421.
Diffstat (limited to 'svx/source/svdraw/svdotxtr.cxx')
-rw-r--r--svx/source/svdraw/svdotxtr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdotxtr.cxx b/svx/source/svdraw/svdotxtr.cxx
index a54cf4016645..b793121e846e 100644
--- a/svx/source/svdraw/svdotxtr.cxx
+++ b/svx/source/svdraw/svdotxtr.cxx
@@ -116,8 +116,8 @@ void SdrTextObj::NbcResize(const Point& rRef, const boost::rational<long>& xFact
long nVDist=GetTextUpperDistance()+GetTextLowerDistance();
long nTWdt0=aRect.GetWidth ()-1-nHDist; if (nTWdt0<0) nTWdt0=0;
long nTHgt0=aRect.GetHeight()-1-nVDist; if (nTHgt0<0) nTHgt0=0;
- bool bXMirr = xFact < 0;
- bool bYMirr = yFact < 0;
+ bool bXMirr = xFact.numerator() < 0;
+ bool bYMirr = yFact.numerator() < 0;
if (bXMirr || bYMirr) {
Point aRef1(GetSnapRect().Center());
if (bXMirr) {