Non-trivial modified files ========================== "fdo#81356: convert Fraction to boost::rational - wip" http://cgit.freedesktop.org/libreoffice/core/commit/?id=47a2d7642d249d70b5da0c330a73f3a0032e4bba GetDenominator() != 0 --------------------- Always true * svx/source/svdraw/svddrgmt.cxx @@ -3301,7 +3301,7 @@ void SdrDragCrook::MoveSdrDrag(const Point& rPnt) GetDenominator() == 0 --------------------- Always false, we can't create invalid rationals * include/svx/svdtrans.hxx @@ -102,12 +102,10 @@ void CrookStretchPoly(XPolyPolygon& rPoly, const Point& rCenter, const Point& rR * svx/source/svdraw/svdtrans.cxx @@ -32,46 +32,20 @@ void MoveXPoly(XPolygon& rPoly, const Size& S) @@ -789,7 +763,7 @@ void GetMeterOrInch(FieldUnit eFU, short& rnKomma, long& rnMul, long& rnDiv, boo GetDenominator() == -1 ---------------------- Always false, the internal representation uses denominator > 0 * vcl/source/outdev/map.cxx @@ -43,41 +43,14 @@ Reduces accuracy until it is a fraction (should become GetDenominator() < 0 -------------------- Always false, the internal representation uses denominator > 0 * svx/source/svdraw/svdobj.cxx @@ -1495,10 +1495,10 @@ void SdrObject::NbcMove(const Size& rSiz) * svx/source/svdraw/svdocirc.cxx @@ -811,15 +811,15 @@ void SdrCircObj::NbcMove(const Size& aSiz) * svx/source/svdraw/svdogrp.cxx @@ -436,10 +436,10 @@ void SdrObjGroup::NbcMove(const Size& rSiz) @@ -587,11 +587,11 @@ void SdrObjGroup::Move(const Size& rSiz) * svx/source/svdraw/svdotxtr.cxx @@ -126,8 +126,8 @@ void SdrTextObj::NbcResize(const Point& rRef, const Fraction& xFact, const Fract * svx/source/svdraw/svdoashp.cxx @@ -1580,16 +1580,16 @@ void SdrObjCustomShape::NbcResize( const Point& rRef, const Fraction& rxFact, co IsValid() --------- Always true, we can't create invalid rationals * svx/source/sdr/properties/itemsettools.cxx @@ -93,15 +93,10 @@ namespace sdr * svx/source/svdraw/svdattr.cxx @@ -643,19 +643,12 @@ bool SdrFractionItem::GetPresentation( @@ -699,16 +692,9 @@ bool SdrScaleItem::GetPresentation( * svx/source/svdraw/svddrgmt.cxx @@ -3301,7 +3301,7 @@ void SdrDragCrook::MoveSdrDrag(const Point& rPnt) * svx/source/svdraw/svdomeas.cxx @@ -113,27 +113,21 @@ OUString SdrMeasureObj::TakeRepresentation(SdrMeasureFieldKind eMeasureFieldKind * sw/source/core/txtnode/fntcache.cxx @@ -467,12 +467,10 @@ void SwFntObj::CreateScrFont( const SwViewShell& rSh, const OutputDevice& rOut ) * sw/source/uibase/uiview/viewport.cxx @@ -985,12 +985,10 @@ void SwView::InnerResizePixel( const Point &rOfst, const Size &rSize ) ReadFraction() -------------- If read an invalid rational return zero rational instead throw an exception * tools/source/generic/rational.cxx @@ -0,0 +1,172 @@