diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-26 13:27:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-27 10:24:14 +0100 |
commit | 8be5a49f377e5451da953aee598fd22f9665fbd6 (patch) | |
tree | d8aad16822c91a6a3115824e3840530e4d59a012 /sc/source/ui/view/output3.cxx | |
parent | 814e50e6622ea9701094f3ec309a395d175c494f (diff) |
drop old tools/gen.hxx methods in sc
Change-Id: I3652c0a35a6873e80ee22d908a8969d09410776b
Reviewed-on: https://gerrit.libreoffice.org/50361
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/output3.cxx')
-rw-r--r-- | sc/source/ui/view/output3.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/ui/view/output3.cxx b/sc/source/ui/view/output3.cxx index d86fcb3fcc36..270d974e3a0b 100644 --- a/sc/source/ui/view/output3.cxx +++ b/sc/source/ui/view/output3.cxx @@ -45,7 +45,7 @@ Point ScOutputData::PrePrintDrawingLayer(long nLogStX, long nLogStY ) for (nCol=0; nCol<nX1; nCol++) aOffset.AdjustX( -(mpDoc->GetColWidth( nCol, nTab ) * nLayoutSign) ); - aOffset.Y() -= mpDoc->GetRowHeight( 0, nY1-1, nTab ); + aOffset.AdjustY( -sal_Int32(mpDoc->GetRowHeight( 0, nY1-1, nTab )) ); long nDataWidth = 0; for (nCol=nX1; nCol<=nX2; nCol++) @@ -54,8 +54,10 @@ Point ScOutputData::PrePrintDrawingLayer(long nLogStX, long nLogStY ) if ( bLayoutRTL ) aOffset.AdjustX(nDataWidth ); - aRect.Left() = aRect.Right() = -aOffset.X(); - aRect.Top() = aRect.Bottom() = -aOffset.Y(); + aRect.SetLeft( -aOffset.X() ); + aRect.SetRight( -aOffset.X() ); + aRect.SetTop( -aOffset.Y() ); + aRect.SetBottom( -aOffset.Y() ); Point aMMOffset( aOffset ); aMMOffset.setX( static_cast<long>(aMMOffset.X() * HMM_PER_TWIPS) ); |