diff options
Diffstat (limited to 'svx/source/dialog/_contdlg.cxx')
-rw-r--r-- | svx/source/dialog/_contdlg.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx index 7e4180b8f986..62f18c8ddb26 100644 --- a/svx/source/dialog/_contdlg.cxx +++ b/svx/source/dialog/_contdlg.cxx @@ -158,9 +158,15 @@ tools::PolyPolygon SvxContourDlg::CreateAutoContour( const Graphic& rGraphic, double fWH = static_cast<double>(aSizePix.Width()) / aSizePix.Height(); if( fWH <= 1.0 ) - aSizePix.setWidth( FRound( ( aSizePix.Height() = 512 ) * fWH ) ); + { + aSizePix.setHeight(512); + aSizePix.setWidth( FRound( ( aSizePix.Height() ) * fWH ) ); + } else - aSizePix.setHeight( FRound( ( aSizePix.Width() = 512 ) / fWH ) ); + { + aSizePix.setWidth(512); + aSizePix.setHeight( FRound( ( aSizePix.Width() ) / fWH ) ); + } } if( pVDev->SetOutputSizePixel( aSizePix ) ) |