]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_creation.cpp
Still in the middle of fixing preview/snapper rendering...
[architektonas] / src / base / rs_creation.cpp
index 4fc2bc3bdd2a3f496f7f8ad397e43cbad4226283..be969ef3dd5309d2b945021c45712dd6125d50a3 100644 (file)
@@ -1134,25 +1134,33 @@ RS_Block * RS_Creation::createBlock(const RS_BlockData & data,
                //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:
@@ -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);
                        }
                }