From 005adc90649ab25ade64fce70e6a77b06b4cd543 Mon Sep 17 00:00:00 2001 From: cilix42 Date: Sun, 21 Jun 2009 19:55:16 +0000 Subject: [PATCH] Small fix in ruler LPE: marks shouldn't have double length when they are applied on both sides --- src/live_effects/lpe-ruler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/live_effects/lpe-ruler.cpp b/src/live_effects/lpe-ruler.cpp index 67bffa1e2..80970fd8a 100644 --- a/src/live_effects/lpe-ruler.cpp +++ b/src/live_effects/lpe-ruler.cpp @@ -90,6 +90,10 @@ LPERuler::ruler_mark(Geom::Point const &A, Geom::Point const &n, MarkType const n_major = real_mark_length * n; n_minor = real_minor_mark_length * n; + if (mark_dir == MARKDIR_BOTH) { + n_major = n_major * 0.5; + n_minor = n_minor * 0.5; + } Point C, D; switch (marktype) { -- 2.30.2