summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2021-04-08 17:59:42 +0300
committerTor Lillqvist <tml@collabora.com>2021-04-08 21:09:23 +0200
commit9ec0d5561158536e19dc0ed42a4b5ac7aec0755e (patch)
tree9336b25d3591cd7e6635f15ecb8ad00e73f381c0 /svtools
parent9a59068fc31d7150e255ada91c59b8299636f185 (diff)
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@collabora.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ruler.cxx7
1 files changed, 4 insertions, 3 deletions
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();