sd/source/ui/dlg/docprev.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ea15c9dc4da75fcd56e6b0dbce473b9e912fa4e2 Author: Julien Nabet <serval2...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits