summaryrefslogtreecommitdiff
path: root/starmath/source/edit.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-19 08:35:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-20 07:17:29 +0100
commitbea7bbcaaa757155c9cd0f33f1d50ab54cb946bb (patch)
tree835d4566ac158a152e4f3b3bf1d60fc30f360384 /starmath/source/edit.cxx
parent24abfc0b480a1161e99f5d0ee4d3e694abbed6b1 (diff)
loplugin:changetoolsgen in starmath
Change-Id: Iafa99639e1fe2bc45ece2b3ef0744816446f3faf Reviewed-on: https://gerrit.libreoffice.org/49959 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r--starmath/source/edit.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index e6bf5138fd06..edd7db345037 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -284,7 +284,7 @@ void SmEditWindow::Resize()
if (pEditView->GetVisArea().Top() > nMaxVisAreaStart)
{
tools::Rectangle aVisArea(pEditView->GetVisArea() );
- aVisArea.Top() = std::max<long>(nMaxVisAreaStart, 0);
+ aVisArea.SetTop( std::max<long>(nMaxVisAreaStart, 0) );
aVisArea.SetSize(pEditView->GetOutputArea().GetSize());
pEditView->SetVisArea(aVisArea);
pEditView->ShowCursor();
@@ -560,18 +560,18 @@ tools::Rectangle SmEditWindow::AdjustScrollBars()
if (pVScrollBar && pHScrollBar && pScrollBox)
{
const long nTmp = GetSettings().GetStyleSettings().GetScrollBarSize();
- Point aPt( aRect.TopRight() ); aPt.X() -= nTmp -1;
+ Point aPt( aRect.TopRight() ); aPt.AdjustX( -(nTmp -1) );
pVScrollBar->SetPosSizePixel( aPt, Size(nTmp, aOut.Height() - nTmp));
- aPt = aRect.BottomLeft(); aPt.Y() -= nTmp - 1;
+ aPt = aRect.BottomLeft(); aPt.AdjustY( -(nTmp - 1) );
pHScrollBar->SetPosSizePixel( aPt, Size(aOut.Width() - nTmp, nTmp));
- aPt.X() = pHScrollBar->GetSizePixel().Width();
- aPt.Y() = pVScrollBar->GetSizePixel().Height();
+ aPt.setX( pHScrollBar->GetSizePixel().Width() );
+ aPt.setY( pVScrollBar->GetSizePixel().Height() );
pScrollBox->SetPosSizePixel(aPt, Size(nTmp, nTmp ));
- aRect.Right() = aPt.X() - 2;
- aRect.Bottom() = aPt.Y() - 2;
+ aRect.SetRight( aPt.X() - 2 );
+ aRect.SetBottom( aPt.Y() - 2 );
}
return aRect;
}