summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-10-16 10:33:57 +0000
committerJabiertxof <jtx@jtx.marker.es>2013-10-16 10:33:57 +0000
commitb4e5058110f8e4f5ed22eb9e9ba67129c6895413 (patch)
treeae7a8a813ef6ba3e1c9a2ed654762a6ea43556a7 /src/draw-context.cpp
parentUpdate to trunk (diff)
downloadinkscape-b4e5058110f8e4f5ed22eb9e9ba67129c6895413.tar.gz
inkscape-b4e5058110f8e4f5ed22eb9e9ba67129c6895413.zip
fixing bend warnings
(bzr r12588.1.18)
Diffstat (limited to '')
-rw-r--r--src/draw-context.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index df0e6be3b..7eafcabab 100644
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
@@ -683,8 +683,6 @@ static void spdc_flush_white(SPDrawContext *dc, SPCurve *gc)
{
SPCurve *c;
- if(bend) return;
-
if (dc->white_curves) {
g_assert(dc->white_item);
c = SPCurve::concat(dc->white_curves);
@@ -738,11 +736,11 @@ static void spdc_flush_white(SPDrawContext *dc, SPCurve *gc)
// we finished the path; now apply any waiting LPEs or freehand shapes
spdc_check_for_and_apply_waiting_LPE(dc, item, c);
- dc->selection->set(repr);
+ if(!bend) dc->selection->set(repr);
Inkscape::GC::release(repr);
- item->transform = SP_ITEM(desktop->currentLayer())->i2doc_affine().inverse();
- item->doWriteTransform(item->getRepr(), item->transform, NULL, true);
- item->updateRepr();
+ if(!bend) item->transform = SP_ITEM(desktop->currentLayer())->i2doc_affine().inverse();
+ if(!bend) item->doWriteTransform(item->getRepr(), item->transform, NULL, true);
+ if(!bend) item->updateRepr();
}
DocumentUndo::done(doc, SP_IS_PEN_CONTEXT(dc)? SP_VERB_CONTEXT_PEN : SP_VERB_CONTEXT_PENCIL,