summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2015-01-15 19:33:00 +0000
committerapenner <penner@vaxxine.com>2015-01-15 19:33:00 +0000
commita8479d867d60fe034bf5c02d3154b9386d94521b (patch)
treeff16134a31179218e45bc447fdd83b8b7ec2e7f4 /src/sp-item.cpp
parentduring copy and paste, scale stock symbols from units of 'px' to 'document-un... (diff)
downloadinkscape-a8479d867d60fe034bf5c02d3154b9386d94521b.tar.gz
inkscape-a8479d867d60fe034bf5c02d3154b9386d94521b.zip
allow stroke_width to be scaled even if stroke color is not defined. (Bug 1365451 and Bug 1409458)
Fixed bugs: - https://launchpad.net/bugs/1365451 (bzr r13854)
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index fbb76e971..5d181b80a 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -1299,7 +1299,7 @@ void SPItem::adjust_stroke( gdouble ex )
SPStyle *style = this->style;
- if (style && !style->stroke.isNone() && !Geom::are_near(ex, 1.0, Geom::EPSILON)) {
+ if (style && !Geom::are_near(ex, 1.0, Geom::EPSILON)) {
style->stroke_width.computed *= ex;
style->stroke_width.set = TRUE;