summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svddrag.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svddrag.cxx')
-rw-r--r--svx/source/svdraw/svddrag.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svddrag.cxx b/svx/source/svdraw/svddrag.cxx
index fda560eb2a43..3c0f109954b0 100644
--- a/svx/source/svdraw/svddrag.cxx
+++ b/svx/source/svdraw/svddrag.cxx
@@ -106,22 +106,22 @@ bool SdrDragStat::CheckMinMoved(const Point& rPnt)
return bMinMoved;
}
-boost::rational<long> SdrDragStat::GetXFact() const
+Fraction SdrDragStat::GetXFact() const
{
long nMul=GetNow().X()-aRef1.X();
long nDiv=GetPrev().X()-aRef1.X();
if (nDiv==0) nDiv=1;
if (bHorFixed) { nMul=1; nDiv=1; }
- return boost::rational<long>(nMul,nDiv);
+ return Fraction(nMul,nDiv);
}
-boost::rational<long> SdrDragStat::GetYFact() const
+Fraction SdrDragStat::GetYFact() const
{
long nMul=GetNow().Y()-aRef1.Y();
long nDiv=GetPrev().Y()-aRef1.Y();
if (nDiv==0) nDiv=1;
if (bVerFixed) { nMul=1; nDiv=1; }
- return boost::rational<long>(nMul,nDiv);
+ return Fraction(nMul,nDiv);
}
void SdrDragStat::TakeCreateRect(Rectangle& rRect) const