diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-29 20:45:00 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-29 20:46:29 +0200 |
commit | c46cc5751b5af4ce180fca63f998fe7eb405f93c (patch) | |
tree | b805b603800b0c67d576382346c31a1d8b166e54 /sd/source/ui/dlg/docprev.cxx | |
parent | 1af3579ecbe3747bcb9535d026d2a34792cd9106 (diff) |
cppcheck: zerodiv
Change-Id: I09e1c86bdda301c11700ffe05d4a3d83b7a1104d
Diffstat (limited to 'sd/source/ui/dlg/docprev.cxx')
-rw-r--r-- | sd/source/ui/dlg/docprev.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx index cd015cdbd285..4c4293ce0f54 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 = 0; + if( nHeight < 0 ) nHeight = 1; double dRatio=((double)aTmpSize.Width())/aTmpSize.Height(); double dRatioPreV=((double) nWidth ) / nHeight; |