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

Fraction: Revert "coverity#1247617 there is nothing to do if width is 0"

This reverts commit 6016287f.
üst d4867dda
......@@ -113,8 +113,6 @@ void SvxXConnectionPreview::AdaptSize()
aNewSize.Height()= (long) ( (double) nWidth / fRectWH );
}
if (aRect.GetWidth() == 0)
return;
boost::rational<sal_Int64> aFrac1( aWinSize.Width(), aRect.GetWidth() );
boost::rational<sal_Int64> aFrac2( aWinSize.Height(), aRect.GetHeight() );
boost::rational<sal_Int64> aMinFrac( aFrac1 <= aFrac2 ? aFrac1 : aFrac2 );
......
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