summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-10-16 10:51:38 +0000
committerJabiertxof <jtx@jtx.marker.es>2013-10-16 10:51:38 +0000
commit2cb4bc14f2c2252ea5af6e0e5b857d8d5813ffcd (patch)
tree2a56e2afc84b276a01aae0eceef808b7553108ad /src
parentfixing bend warnings (diff)
downloadinkscape-2cb4bc14f2c2252ea5af6e0e5b857d8d5813ffcd.tar.gz
inkscape-2cb4bc14f2c2252ea5af6e0e5b857d8d5813ffcd.zip
fixing last applied bend
(bzr r12588.1.20)
Diffstat (limited to 'src')
-rw-r--r--src/draw-context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index b2afb5095..3b89652b9 100644
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
@@ -337,7 +337,7 @@ static void spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item
if(cm->paste(SP_ACTIVE_DESKTOP,false) == true){
gchar const *svgd = item->getRepr()->attribute("d");
item->deleteObject();
- if(itemEnd != NULL && !itemEnd->getRepr())
+ if(itemEnd != NULL && itemEnd->getRepr() != NULL)
itemEnd->deleteObject();
Inkscape::Selection *selection = sp_desktop_selection(dc->desktop);
sp_selection_group(selection, dc->desktop);
@@ -417,7 +417,7 @@ static void spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item
case 5:
{
// take shape from clipboard; TODO: catch the case where clipboard is empty
- if(itemEnd != NULL && !itemEnd->getRepr()){
+ if(itemEnd != NULL && itemEnd->getRepr() != NULL){
gchar const *svgd = item->getRepr()->attribute("d");
item->deleteObject();
Inkscape::Selection *selection = sp_desktop_selection(dc->desktop);