//for (uint i=0; i<container->count(); ++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:
//i=0;
e->changeUndoState();
- if (document != NULL)
+ if (document)
document->addUndoable(e);
}
}