diff options
Diffstat (limited to 'sc/source/filter/html/htmlimp.cxx')
-rw-r--r-- | sc/source/filter/html/htmlimp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/html/htmlimp.cxx b/sc/source/filter/html/htmlimp.cxx index e689c0e18492..927398fcf907 100644 --- a/sc/source/filter/html/htmlimp.cxx +++ b/sc/source/filter/html/htmlimp.cxx @@ -82,8 +82,8 @@ ScHTMLImport::ScHTMLImport( ScDocument* pDocP, const OUString& rBaseURL, const S OSL_FAIL("PageSize Null ?!?!?"); aPageSize = SvxPaperInfo::GetPaperSize( PAPER_A4 ); } - aPageSize.Width() -= nLeftMargin + nRightMargin; - aPageSize.Height() -= nTopMargin + nBottomMargin; + aPageSize.setWidth( aPageSize.Width() - nLeftMargin + nRightMargin ); + aPageSize.setHeight( aPageSize.Height() - nTopMargin + nBottomMargin ); aPageSize = pDefaultDev->LogicToPixel( aPageSize, MapMode( MapUnit::MapTwip ) ); } else |