X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_creation.cpp;h=be969ef3dd5309d2b945021c45712dd6125d50a3;hb=bd2b29c8735d83ab48df13c3efee53f63570473e;hp=4fc2bc3bdd2a3f496f7f8ad397e43cbad4226283;hpb=1f0d096a7fc370ff02477f3860beae2669bf8903;p=architektonas diff --git a/src/base/rs_creation.cpp b/src/base/rs_creation.cpp index 4fc2bc3..be969ef 100644 --- a/src/base/rs_creation.cpp +++ b/src/base/rs_creation.cpp @@ -1134,25 +1134,33 @@ RS_Block * RS_Creation::createBlock(const RS_BlockData & data, //for (uint i=0; icount(); ++i) { //RS_Entity* e = container->entityAt(i); - if (e != NULL && e->isSelected()) + if (e && e->isSelected()) { // delete / redraw entity in graphic view: if (remove) { - if (graphicView != NULL) +#warning "!!! Old rendering path needs upgrading !!!" +#if 0 + if (graphicView) graphicView->deleteEntity(e); +#endif e->setSelected(false); } else { - if (graphicView != NULL) +#warning "!!! Old rendering path needs upgrading !!!" +#if 0 + if (graphicView) graphicView->deleteEntity(e); - +#endif e->setSelected(false); - if (graphicView != NULL) +#warning "!!! Old rendering path needs upgrading !!!" +#if 0 + if (graphicView) graphicView->drawEntity(e); +#endif } // add entity to block: @@ -1166,7 +1174,7 @@ RS_Block * RS_Creation::createBlock(const RS_BlockData & data, //i=0; e->changeUndoState(); - if (document != NULL) + if (document) document->addUndoable(e); } }