diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-05 09:35:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-05 12:11:34 +0100 |
commit | 05a195ffca41bc3883627b9503ade8cdd0b6d909 (patch) | |
tree | a73e02ac05c236ad039ce2a3f13e667bf869d021 /sw/source/ui/table | |
parent | ffd64fcc62937e8cfda1eb2146af4893cbf29ec5 (diff) |
drop long& returning methods in Point
Change-Id: I5d23191fd5a549b867213acedf9d56c233e2fb13
Reviewed-on: https://gerrit.libreoffice.org/50761
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/table')
-rw-r--r-- | sw/source/ui/table/autoformatpreview.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/ui/table/autoformatpreview.cxx b/sw/source/ui/table/autoformatpreview.cxx index ea16da988211..27f5a4c0705c 100644 --- a/sw/source/ui/table/autoformatpreview.cxx +++ b/sw/source/ui/table/autoformatpreview.cxx @@ -696,24 +696,24 @@ void AutoFormatPreview::DrawString(vcl::RenderContext& rRenderContext, size_t nC nRightX = cellRect.GetWidth() - aStrSize.Width() - FRAME_OFFSET; // vertical (always centering): - aPos.Y() += (nRowHeight - aStrSize.Height()) / 2; + aPos.AdjustY((nRowHeight - aStrSize.Height()) / 2); // horizontal if (mbRTL) - aPos.X() += nRightX; + aPos.AdjustX(nRightX); else if (aCurData.IsJustify()) { const SvxAdjustItem& rAdj = aCurData.GetBoxFormat(nFormatIndex).GetAdjust(); switch (rAdj.GetAdjust()) { case SvxAdjust::Left: - aPos.X() += FRAME_OFFSET; + aPos.AdjustX(FRAME_OFFSET); break; case SvxAdjust::Right: - aPos.X() += nRightX; + aPos.AdjustX(nRightX); break; default: - aPos.X() += (cellRect.GetWidth() - aStrSize.Width()) / 2; + aPos.AdjustX((cellRect.GetWidth() - aStrSize.Width()) / 2); break; } } @@ -723,12 +723,12 @@ void AutoFormatPreview::DrawString(vcl::RenderContext& rRenderContext, size_t nC if (nCol == 0 || nIndex == 4) { // Text-Label left or sum left aligned - aPos.X() += FRAME_OFFSET; + aPos.AdjustX(FRAME_OFFSET); } else { // numbers/dates right aligned - aPos.X() += nRightX; + aPos.AdjustX(nRightX); } } |