X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_modification.cpp;fp=src%2Fbase%2Frs_modification.cpp;h=c43ae64b1eff4dc141fabdd8e1947d006d504fe8;hb=bd2b29c8735d83ab48df13c3efee53f63570473e;hp=9a39ff03dc92ee3e39565e4b9b1143b967a145eb;hpb=dd17716b803ab2aa4163b905904a078f9fa5ae02;p=architektonas diff --git a/src/base/rs_modification.cpp b/src/base/rs_modification.cpp index 9a39ff0..c43ae64 100644 --- a/src/base/rs_modification.cpp +++ b/src/base/rs_modification.cpp @@ -84,24 +84,22 @@ void RS_Modification::remove() */ bool RS_Modification::changeAttributes(RS_AttributesData & data) { - if (container == NULL) + if (!container) { RS_DEBUG->print("RS_Modification::changeAttributes: no valid container", RS_Debug::D_WARNING); return false; } -// Q3PtrList addList; -// addList.setAutoDelete(false); QList addList; - if (document != NULL) + if (document) document->startUndoCycle(); for(RS_Entity * e=container->firstEntity(); e!=NULL; e=container->nextEntity()) { //for (uint i=0; icount(); ++i) { //RS_Entity* e = container->entityAt(i); - if (e != NULL && e->isSelected()) + if (e && e->isSelected()) { RS_Entity * ec = e->clone(); ec->setSelected(false); @@ -139,10 +137,10 @@ bool RS_Modification::changeAttributes(RS_AttributesData & data) deselectOriginals(true); addNewEntities(addList); - if (document != NULL) + if (document) document->endUndoCycle(); - if (graphicView != NULL) + if (graphicView) graphicView->redraw(); return true;