[Libreoffice-commits] core.git: sd/source
Julien Nabet
serval2412 at yahoo.fr
Fri May 30 13:39:57 PDT 2014
sd/source/ui/dlg/docprev.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ea15c9dc4da75fcd56e6b0dbce473b9e912fa4e2
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri May 30 22:38:39 2014 +0200
Revert "cppcheck: zerodiv"
This reverts commit c46cc5751b5af4ce180fca63f998fe7eb405f93c.
See http://nabble.documentfoundation.org/avoiding-cppunit-zerodiv-correction-td4110788.html
for more details
diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx
index 4c4293c..cd015cd 100644
--- a/sd/source/ui/dlg/docprev.cxx
+++ b/sd/source/ui/dlg/docprev.cxx
@@ -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;
More information about the Libreoffice-commits
mailing list