[Libreoffice-commits] core.git: svtools/source
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 8 19:10:06 UTC 2021
svtools/source/control/ruler.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 9ec0d5561158536e19dc0ed42a4b5ac7aec0755e
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Apr 8 17:59:42 2021 +0300
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Apr 8 21:09:23 2021 +0200
Add short comments explaining a bit how a tabstop is drawn in a ruler
Change-Id: I11dcf7f55490ddd756fb4ac211789e51c94eccc3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113812
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml at collabora.com>
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 2551dc39581d..61b5b60d539f 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -856,9 +856,10 @@ static void ImplDrawRulerTab(vcl::RenderContext& rRenderContext, const Point& rP
// drawn become asymmetric due to the +1 offsets
sal_uInt16 DPIOffset = rRenderContext.GetDPIScaleFactor() - 1;
- tools::Rectangle aRect1;
- tools::Rectangle aRect2;
- tools::Rectangle aRect3;
+ // A tabstop is drawn using three rectangles
+ tools::Rectangle aRect1; // A horizontal short line
+ tools::Rectangle aRect2; // A vertical short line
+ tools::Rectangle aRect3; // A small square
aRect3.SetEmpty();
More information about the Libreoffice-commits
mailing list