]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_entitycontainer.cpp
Fixed preview rendering for ActionDrawLine...
[architektonas] / src / base / rs_entitycontainer.cpp
index 85a38b5e8d629104fd6b0c06cec2dfec52771fdb..a13c0d6fc82ea385193d560c8f8da65eade50357 100644 (file)
@@ -24,7 +24,7 @@
 #include "rs_insert.h"
 #include "rs_spline.h"
 #include "rs_information.h"
-#include "rs_graphicview.h"
+#include "graphicview.h"
 #include "paintintf.h"
 
 bool RS_EntityContainer::autoUpdateBorders = true;
@@ -348,7 +348,7 @@ void RS_EntityContainer::addEntity(RS_Entity * entity)
        */
 //printf("RS_EntityContainer::addEntity(): entity=%08X\n", entity);
 
-       if (entity == NULL)
+       if (!entity)
                return;
 
        if (entity->rtti() == RS2::EntityImage || entity->rtti() == RS2::EntityHatch)
@@ -1680,8 +1680,7 @@ void RS_EntityContainer::moveSelectedRef(const Vector & ref, const Vector & offs
         calculateBorders();
 }
 
-//void RS_EntityContainer::draw(RS_Painter* painter, RS_GraphicView* view,
-void RS_EntityContainer::draw(PaintInterface * painter, RS_GraphicView * view, double /*patternOffset*/)
+void RS_EntityContainer::draw(PaintInterface * painter, GraphicView * view, double /*patternOffset*/)
 {
        if (painter == NULL || view == NULL)
                return;