Kaydet (Commit) ea15c9dc authored tarafından Julien Nabet's avatar Julien Nabet

Revert "cppcheck: zerodiv"

This reverts commit c46cc575.

See http://nabble.documentfoundation.org/avoiding-cppunit-zerodiv-correction-td4110788.html
for more details
üst 2949cb7b
......@@ -87,7 +87,7 @@ void SdDocPreviewWin::CalcSizeAndPos( GDIMetaFile* pFile, Size& rSize, Point& rP
long nWidth = rSize.Width() - 2*FRAME;
long nHeight = rSize.Height() - 2*FRAME;
if( nWidth < 0 ) nWidth = 0;
if( nHeight < 0 ) nHeight = 1;
if( nHeight < 0 ) nHeight = 0;
double dRatio=((double)aTmpSize.Width())/aTmpSize.Height();
double dRatioPreV=((double) nWidth ) / nHeight;
......
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