From: cilix42 Date: Sun, 21 Jun 2009 19:55:16 +0000 (+0000) Subject: Small fix in ruler LPE: marks shouldn't have double length when they are applied... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=005adc90649ab25ade64fce70e6a77b06b4cd543;p=inkscape.git Small fix in ruler LPE: marks shouldn't have double length when they are applied on both sides --- 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) {