summaryrefslogtreecommitdiff
path: root/reportdesign/source/ui/report/ScrollHelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 09:38:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-15 07:30:47 +0100
commit457220bc2c0142c5b6f4135cb688ccfc99fec792 (patch)
treea387225d9d1e4914815a52a27e0a034fe5e85a26 /reportdesign/source/ui/report/ScrollHelper.cxx
parent0d9f3f7628f88fa66aaeea1f7148db620e17e728 (diff)
loplugin:changetoolsgen in oox,reportdesign
Change-Id: I8112ae6bb92ef96b4229ab53b7002ae3c0ba865c Reviewed-on: https://gerrit.libreoffice.org/49702 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/source/ui/report/ScrollHelper.cxx')
-rw-r--r--reportdesign/source/ui/report/ScrollHelper.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/reportdesign/source/ui/report/ScrollHelper.cxx b/reportdesign/source/ui/report/ScrollHelper.cxx
index ef3864852066..d43921fdfb42 100644
--- a/reportdesign/source/ui/report/ScrollHelper.cxx
+++ b/reportdesign/source/ui/report/ScrollHelper.cxx
@@ -106,8 +106,8 @@ void OScrollWindowHelper::initialize()
void OScrollWindowHelper::setTotalSize(sal_Int32 _nWidth ,sal_Int32 _nHeight)
{
- m_aTotalPixelSize.Width() = _nWidth;
- m_aTotalPixelSize.Height() = _nHeight;
+ m_aTotalPixelSize.setWidth( _nWidth );
+ m_aTotalPixelSize.setHeight( _nHeight );
// now set the ranges without start marker
Fraction aStartWidth(REPORT_STARTMARKER_WIDTH * m_pParent->getController().getZoomValue(),100);
@@ -125,7 +125,7 @@ Size OScrollWindowHelper::ResizeScrollBars()
if ( aOutPixSz.Width() == 0 || aOutPixSz.Height() == 0 )
return aOutPixSz;
- aOutPixSz.Height() -= m_aReportWindow->getRulerHeight();
+ aOutPixSz.setHeight( aOutPixSz.Height() - m_aReportWindow->getRulerHeight() );
// determine the size of the output-area and if we need scrollbars
const long nScrSize = GetSettings().GetStyleSettings().GetScrollBarSize();
bool bVVisible = false; // by default no vertical-ScrollBar
@@ -139,7 +139,7 @@ Size OScrollWindowHelper::ResizeScrollBars()
if ( aOutPixSz.Width() < m_aTotalPixelSize.Width() && !bHVisible )
{
bHVisible = true;
- aOutPixSz.Height() -= nScrSize;
+ aOutPixSz.setHeight( aOutPixSz.Height() - nScrSize );
bChanged = true;
}
@@ -147,14 +147,14 @@ Size OScrollWindowHelper::ResizeScrollBars()
if ( aOutPixSz.Height() < m_aTotalPixelSize.Height() && !bVVisible )
{
bVVisible = true;
- aOutPixSz.Width() -= nScrSize;
+ aOutPixSz.setWidth( aOutPixSz.Width() - nScrSize );
bChanged = true;
}
}
while ( bChanged ); // until no visibility has changed
- aOutPixSz.Height() += m_aReportWindow->getRulerHeight();
+ aOutPixSz.setHeight( aOutPixSz.Height() + m_aReportWindow->getRulerHeight() );
// show or hide scrollbars
m_aVScroll->Show( bVVisible );