diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2009-06-21 19:55:16 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2009-06-21 19:55:16 +0000 |
| commit | cbbb6afc40daa78032482eecce91d6dc4c4b1795 (patch) | |
| tree | 8325cad3188c69175f48e4a2a8fa659b54d5aadd /src | |
| parent | Remove 'Is visible?' checkbox from LPE editor because it duplicates functiona... (diff) | |
| download | inkscape-cbbb6afc40daa78032482eecce91d6dc4c4b1795.tar.gz inkscape-cbbb6afc40daa78032482eecce91d6dc4c4b1795.zip | |
Small fix in ruler LPE: marks shouldn't have double length when they are applied on both sides
(bzr r8126)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-ruler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |
