*/
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<RS_Entity> addList;
-// addList.setAutoDelete(false);
QList<RS_Entity *> addList;
- if (document != NULL)
+ if (document)
document->startUndoCycle();
for(RS_Entity * e=container->firstEntity(); e!=NULL; e=container->nextEntity())
{
//for (uint i=0; i<container->count(); ++i) {
//RS_Entity* e = container->entityAt(i);
- if (e != NULL && e->isSelected())
+ if (e && e->isSelected())
{
RS_Entity * ec = e->clone();
ec->setSelected(false);
deselectOriginals(true);
addNewEntities(addList);
- if (document != NULL)
+ if (document)
document->endUndoCycle();
- if (graphicView != NULL)
+ if (graphicView)
graphicView->redraw();
return true;