Kaydet (Commit) d1d24172 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Fraction: Revert "make sure the denominator is not 0"

This reverts commit e19fb51d.
üst 62dc73d5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment