cppcheck: zerodiv
Change-Id: I09e1c86bdda301c11700ffe05d4a3d83b7a1104d
This commit is contained in:
@@ -87,7 +87,7 @@ void SdDocPreviewWin::CalcSizeAndPos( GDIMetaFile* pFile, Size& rSize, Point& rP
|
|||||||
long nWidth = rSize.Width() - 2*FRAME;
|
long nWidth = rSize.Width() - 2*FRAME;
|
||||||
long nHeight = rSize.Height() - 2*FRAME;
|
long nHeight = rSize.Height() - 2*FRAME;
|
||||||
if( nWidth < 0 ) nWidth = 0;
|
if( nWidth < 0 ) nWidth = 0;
|
||||||
if( nHeight < 0 ) nHeight = 0;
|
if( nHeight < 0 ) nHeight = 1;
|
||||||
|
|
||||||
double dRatio=((double)aTmpSize.Width())/aTmpSize.Height();
|
double dRatio=((double)aTmpSize.Width())/aTmpSize.Height();
|
||||||
double dRatioPreV=((double) nWidth ) / nHeight;
|
double dRatioPreV=((double) nWidth ) / nHeight;
|
||||||
|
Reference in New Issue
Block a user