summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-10-23 17:24:17 +0200
committerJan Holesovsky <kendy@collabora.com>2014-10-23 18:34:35 +0200
commitd1d24172c51c20d7901c7446f84a99138fd29164 (patch)
tree3757ac8eefdb201636c2dd566cae8ba70d63c716
parent62dc73d56920699a27ebeb75bc43a266244e9318 (diff)
Fraction: Revert "make sure the denominator is not 0"
-rw-r--r--svx/source/svdraw/svdview.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx
index 24b26f0bad16..a5f2acd3ea7f 100644
--- a/svx/source/svdraw/svdview.cxx
+++ b/svx/source/svdraw/svdview.cxx
@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <algorithm>
-
#include <editeng/eeitem.hxx>
#include "svx/svdstr.hrc"
@@ -480,8 +478,8 @@ SdrHitKind SdrView::PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) co
// account for FitToSize
bool bFitToSize(pTextObj->IsFitToSize());
if (bFitToSize) {
- boost::rational<long> aX(aTextRect.GetWidth()-1, std::max(aAnchor.GetWidth()-1, 1L));
- boost::rational<long> aY(aTextRect.GetHeight()-1, std::max(aAnchor.GetHeight()-1, 1L));
+ boost::rational<long> aX(aTextRect.GetWidth()-1,aAnchor.GetWidth()-1);
+ boost::rational<long> aY(aTextRect.GetHeight()-1,aAnchor.GetHeight()-1);
ResizePoint(aTemporaryTextRelativePosition,Point(),aX,aY);
}
// account for rotation