From 9ec0d5561158536e19dc0ed42a4b5ac7aec0755e Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 8 Apr 2021 17:59:42 +0300 Subject: 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 --- svtools/source/control/ruler.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'svtools') 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(); -- cgit