diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2014-03-11 14:52:08 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2014-03-11 14:52:08 +0000 |
| commit | 1d31728fb7399f48d272560a290dc990b75a197e (patch) | |
| tree | a343611a11ff84857602a12ef0bf872cfa28cf56 /src/splivarot.cpp | |
| parent | Add a few more style tests. (diff) | |
| download | inkscape-1d31728fb7399f48d272560a290dc990b75a197e.tar.gz inkscape-1d31728fb7399f48d272560a290dc990b75a197e.zip | |
Change stroke-dasharray and stroke-dashoffset handling to match other properties.
Split style.h into more manageable size files.
(bzr r13135)
Diffstat (limited to 'src/splivarot.cpp')
| -rw-r--r-- | src/splivarot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp index 5c7b389ff..6aec42c5b 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -1004,7 +1004,7 @@ Geom::PathVector* item_outline(SPItem const *item, bool bbox_only) Path *res = new Path; res->SetBackData(false); - if (i_style->stroke_dash.n_dash) { + if (!i_style->stroke_dasharray.values.empty()) { // For dashed strokes, use Stroke method, because Outline can't do dashes // However Stroke adds lots of extra nodes _or_ makes the path crooked, so consider this a temporary workaround @@ -1273,7 +1273,7 @@ sp_selected_path_outline(SPDesktop *desktop) Path *res = new Path; res->SetBackData(false); - if (i_style->stroke_dash.n_dash) { + if (!i_style->stroke_dasharray.values.empty()) { // For dashed strokes, use Stroke method, because Outline can't do dashes // However Stroke adds lots of extra nodes _or_ makes the path crooked, so consider this a temporary workaround |
