diff options
| author | Jabiertxof <jtx@jtx> | 2017-03-16 22:29:49 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2017-03-16 22:29:49 +0000 |
| commit | fdd8ce77fa742072a1cea8136acaeed1dae079b5 (patch) | |
| tree | 6418cb90555b397b3c39ed8a07e5f3f0dd158a6a /src/live_effects/lpe-copy_rotate.cpp | |
| parent | Fix rendering when canvas rotated. General code clean-up and documentation. (diff) | |
| download | inkscape-fdd8ce77fa742072a1cea8136acaeed1dae079b5.tar.gz inkscape-fdd8ce77fa742072a1cea8136acaeed1dae079b5.zip | |
Remove some compiling warns
(bzr r15599)
Diffstat (limited to 'src/live_effects/lpe-copy_rotate.cpp')
| -rw-r--r-- | src/live_effects/lpe-copy_rotate.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/live_effects/lpe-copy_rotate.cpp b/src/live_effects/lpe-copy_rotate.cpp index 9ba680cd4..bf82b5deb 100644 --- a/src/live_effects/lpe-copy_rotate.cpp +++ b/src/live_effects/lpe-copy_rotate.cpp @@ -112,7 +112,7 @@ LPECopyRotate::doAfterEffect (SPLPEItem const* lpeitem) return; } SPObject *elemref = NULL; - if (elemref = document->getObjectById(id)) { + if ((elemref = document->getObjectById(id))) { SP_ITEM(elemref)->setHidden(true); } counter++; @@ -124,7 +124,7 @@ LPECopyRotate::doAfterEffect (SPLPEItem const* lpeitem) SPObject *elemref = NULL; char * id = g_strdup(Glib::ustring("rotated-").append("1").append("-").append(sp_lpe_item->getRepr()->attribute("id")).c_str()); guint counter = 0; - while(elemref = document->getObjectById(id)) { + while((elemref = document->getObjectById(id))) { if (SP_ITEM(elemref)->isHidden()) { items.push_back(id); } @@ -229,7 +229,7 @@ LPECopyRotate::toItem(Geom::Affine transform, size_t i, bool reset) items.push_back(elemref_id); SPObject *elemref= NULL; Inkscape::XML::Node *phantom = NULL; - if (elemref = document->getObjectById(elemref_id)) { + if ((elemref = document->getObjectById(elemref_id))) { phantom = elemref->getRepr(); } else { phantom = sp_lpe_item->getRepr()->duplicate(xml_doc); |
