summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-27 17:10:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-01 07:19:10 +0100
commitb8ececb409cd94b24d71f29339e652857dd2063a (patch)
treef732ff1cfec95c0d3eca06d3c906e67402a02b73 /cui
parenta54a3afdb7da42bd603892d1c9b2fcdd7b405e8f (diff)
drop old tools/gen methods in accessibility..formula
Change-Id: I075e29173945200854f2ef8e420867871659766a Reviewed-on: https://gerrit.libreoffice.org/50446 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/hangulhanjadlg.cxx6
-rw-r--r--cui/source/inc/grfpage.hxx8
2 files changed, 8 insertions, 6 deletions
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx
index 64870256f944..9f66d58eef85 100644
--- a/cui/source/dialogs/hangulhanjadlg.cxx
+++ b/cui/source/dialogs/hangulhanjadlg.cxx
@@ -140,8 +140,10 @@ namespace svx
sal_Int32 nCombinedWidth = std::max( aSecondaryRect.GetWidth(), aPrimaryRect.GetWidth() );
// the rectangle where both texts will reside is as high as possible, and as wide as the
// widest of both text rects
- aPrimaryRect.Left() = aSecondaryRect.Left() = _rRect.Left();
- aPrimaryRect.Right() = aSecondaryRect.Right() = _rRect.Left() + nCombinedWidth;
+ aPrimaryRect.SetLeft( _rRect.Left() );
+ aSecondaryRect.SetLeft( aPrimaryRect.Left() );
+ aPrimaryRect.SetRight( _rRect.Left() + nCombinedWidth );
+ aSecondaryRect.SetRight( aPrimaryRect.Right() );
if (DrawTextFlags::Right & _nTextStyle)
{
// move the rectangles to the right
diff --git a/cui/source/inc/grfpage.hxx b/cui/source/inc/grfpage.hxx
index 452dcbd7e9e4..87096615db68 100644
--- a/cui/source/inc/grfpage.hxx
+++ b/cui/source/inc/grfpage.hxx
@@ -39,10 +39,10 @@ public:
virtual void Resize() override;
virtual Size GetOptimalSize() const override;
- void SetTop( long nVal ) { aTopLeft.X() = nVal; }
- void SetBottom( long nVal ) { aBottomRight.X() = nVal; }
- void SetLeft( long nVal ) { aTopLeft.Y() = nVal; }
- void SetRight( long nVal) { aBottomRight.Y() = nVal; }
+ void SetTop( long nVal ) { aTopLeft.setX(nVal); }
+ void SetBottom( long nVal ) { aBottomRight.setX(nVal); }
+ void SetLeft( long nVal ) { aTopLeft.setY(nVal); }
+ void SetRight( long nVal) { aBottomRight.setY(nVal); }
void SetFrameSize( const Size& rSz );
void SetGraphic( const Graphic& rGrf ) { aGrf = rGrf; }
};