diff options
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/filter/graphicfilter2.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/filter/graphicfilter2.cxx b/vcl/source/filter/graphicfilter2.cxx index 377111166f25..51ef11b62455 100644 --- a/vcl/source/filter/graphicfilter2.cxx +++ b/vcl/source/filter/graphicfilter2.cxx @@ -587,12 +587,10 @@ bool GraphicDescriptor::ImpDetectPNG( SvStream& rStm, bool bExtendedInfo ) if ( cByte ) { if ( nXRes ) - aLogSize.Width() = ( aPixSize.Width() * 100000 ) / - nTemp32; + aLogSize.Width() = (aPixSize.Width() * 100000) / nXRes; if ( nYRes ) - aLogSize.Height() = ( aPixSize.Height() * 100000 ) / - nTemp32; + aLogSize.Height() = (aPixSize.Height() * 100000) / nYRes; } } } |