summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2016-11-03 01:55:39 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2016-11-03 01:55:39 +0000
commitf3a1e56cfdaa68c8de656cfb351c1ca6f29d7387 (patch)
treeb56af35e6ac2c5b852a04196f9aa43f3335333b6
parentAdd some unit tests for object-set cppification (diff)
downloadinkscape-f3a1e56cfdaa68c8de656cfb351c1ca6f29d7387.tar.gz
inkscape-f3a1e56cfdaa68c8de656cfb351c1ca6f29d7387.zip
Revert two changes from r15177
Fixed bugs: - https://launchpad.net/bugs/1636475 - https://launchpad.net/bugs/1637885 (bzr r15204)
-rw-r--r--src/display/drawing-shape.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/drawing-shape.cpp b/src/display/drawing-shape.cpp
index ba95a63ce..d7329e670 100644
--- a/src/display/drawing-shape.cpp
+++ b/src/display/drawing-shape.cpp
@@ -217,7 +217,7 @@ DrawingShape::_renderItem(DrawingContext &dc, Geom::IntRect const &area, unsigne
}
{ Inkscape::DrawingContext::Save save(dc);
dc.setSource(rgba);
- dc.setLineWidth(5);
+ dc.setLineWidth(0.5);
dc.setTolerance(0.5);
dc.stroke();
}
@@ -234,7 +234,6 @@ DrawingShape::_renderItem(DrawingContext &dc, Geom::IntRect const &area, unsigne
// we assume the context has no path
Inkscape::DrawingContext::Save save(dc);
dc.transform(_ctm);
- dc.path(_curve->get_pathvector());
// update fill and stroke paints.
@@ -244,6 +243,7 @@ DrawingShape::_renderItem(DrawingContext &dc, Geom::IntRect const &area, unsigne
bool has_stroke = _nrstyle.prepareStroke(dc, _item_bbox, _stroke_pattern);
has_stroke &= (_nrstyle.stroke_width != 0);
if (has_fill || has_stroke) {
+ dc.path(_curve->get_pathvector());
// TODO: remove segments outside of bbox when no dashes present
if (has_fill) {
_nrstyle.applyFill(dc);