Code

Small fix in ruler LPE: marks shouldn't have double length when they are applied...
authorcilix42 <cilix42@users.sourceforge.net>
Sun, 21 Jun 2009 19:55:16 +0000 (19:55 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Sun, 21 Jun 2009 19:55:16 +0000 (19:55 +0000)
src/live_effects/lpe-ruler.cpp

index 67bffa1e278c15287bbf0b762f7e8dfe136c0c8e..80970fd8a5cd43f8a250d7600a75da372293d215 100644 (file)
@@ -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) {