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

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

This reverts commit a3dc4db8.
üst 858c2a29
...@@ -1219,12 +1219,8 @@ void SAL_CALL SvxShape::setSize( const awt::Size& rSize ) ...@@ -1219,12 +1219,8 @@ void SAL_CALL SvxShape::setSize( const awt::Size& rSize )
if(mpObj->GetObjInventor() == SdrInventor && mpObj->GetObjIdentifier() == OBJ_MEASURE ) if(mpObj->GetObjInventor() == SdrInventor && mpObj->GetObjIdentifier() == OBJ_MEASURE )
{ {
boost::rational<long> aWdt; boost::rational<long> aWdt(aLocalSize.Width(),aRect.Right()-aRect.Left());
if (aRect.Right()-aRect.Left() > 0) boost::rational<long> aHgt(aLocalSize.Height(),aRect.Bottom()-aRect.Top());
aWdt.assign(aLocalSize.Width(),aRect.Right()-aRect.Left());
boost::rational<long> aHgt;
if (aRect.Bottom()-aRect.Top() > 0)
aHgt.assign(aLocalSize.Height(),aRect.Bottom()-aRect.Top());
Point aPt = mpObj->GetSnapRect().TopLeft(); Point aPt = mpObj->GetSnapRect().TopLeft();
mpObj->Resize(aPt,aWdt,aHgt); mpObj->Resize(aPt,aWdt,aHgt);
} }
......
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