[Libreoffice-commits] core.git: sw/source
Andrea Gelmini (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 1 13:30:52 UTC 2020
sw/source/uibase/misc/swruler.cxx | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
New commits:
commit df3bfbb8a74ff6572b7eb29a219c861f2b564220
Author: Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Mon Aug 31 16:12:26 2020 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Tue Sep 1 15:30:08 2020 +0200
Fix typo in code
IT passed "make check" on Linux
Change-Id: Ic7eb9958a192f8ced72481e42119066b455450aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101800
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/sw/source/uibase/misc/swruler.cxx b/sw/source/uibase/misc/swruler.cxx
index 80ef575f18fc..fb117e8e3b95 100644
--- a/sw/source/uibase/misc/swruler.cxx
+++ b/sw/source/uibase/misc/swruler.cxx
@@ -44,36 +44,36 @@ namespace
void ImplDrawArrow(vcl::RenderContext& rRenderContext, long nX, long nY, long nSize,
const Color& rColor, bool bCollapsed)
{
- tools::Polygon aTriaglePolygon(4);
+ tools::Polygon aTrianglePolygon(4);
if (bCollapsed)
{
if (AllSettings::GetLayoutRTL()) // <
{
- aTriaglePolygon.SetPoint({ nX + nSize / 2, nY }, 0);
- aTriaglePolygon.SetPoint({ nX + nSize / 2, nY + nSize }, 1);
- aTriaglePolygon.SetPoint({ nX, nY + nSize / 2 }, 2);
- aTriaglePolygon.SetPoint({ nX + nSize / 2, nY }, 3);
+ aTrianglePolygon.SetPoint({ nX + nSize / 2, nY }, 0);
+ aTrianglePolygon.SetPoint({ nX + nSize / 2, nY + nSize }, 1);
+ aTrianglePolygon.SetPoint({ nX, nY + nSize / 2 }, 2);
+ aTrianglePolygon.SetPoint({ nX + nSize / 2, nY }, 3);
}
else // >
{
- aTriaglePolygon.SetPoint({ nX, nY }, 0);
- aTriaglePolygon.SetPoint({ nX + nSize / 2, nY + nSize / 2 }, 1);
- aTriaglePolygon.SetPoint({ nX, nY + nSize }, 2);
- aTriaglePolygon.SetPoint({ nX, nY }, 3);
+ aTrianglePolygon.SetPoint({ nX, nY }, 0);
+ aTrianglePolygon.SetPoint({ nX + nSize / 2, nY + nSize / 2 }, 1);
+ aTrianglePolygon.SetPoint({ nX, nY + nSize }, 2);
+ aTrianglePolygon.SetPoint({ nX, nY }, 3);
}
}
else // v
{
- aTriaglePolygon.SetPoint({ nX, nY + nSize / 2 }, 0);
- aTriaglePolygon.SetPoint({ nX + nSize, nY + nSize / 2 }, 1);
- aTriaglePolygon.SetPoint({ nX + nSize / 2, nY + nSize }, 2);
- aTriaglePolygon.SetPoint({ nX, nY + nSize / 2 }, 3);
+ aTrianglePolygon.SetPoint({ nX, nY + nSize / 2 }, 0);
+ aTrianglePolygon.SetPoint({ nX + nSize, nY + nSize / 2 }, 1);
+ aTrianglePolygon.SetPoint({ nX + nSize / 2, nY + nSize }, 2);
+ aTrianglePolygon.SetPoint({ nX, nY + nSize / 2 }, 3);
}
rRenderContext.SetLineColor();
rRenderContext.SetFillColor(rColor);
- rRenderContext.DrawPolygon(aTriaglePolygon);
+ rRenderContext.DrawPolygon(aTrianglePolygon);
}
}
More information about the Libreoffice-commits
mailing list