X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_entitycontainer.cpp;h=94f3a4ceb09aa4382b809454d930436bb49a5b70;hb=d774c2655ba2c3657a565f325411144452392277;hp=85a38b5e8d629104fd6b0c06cec2dfec52771fdb;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/base/rs_entitycontainer.cpp b/src/base/rs_entitycontainer.cpp index 85a38b5..94f3a4c 100644 --- a/src/base/rs_entitycontainer.cpp +++ b/src/base/rs_entitycontainer.cpp @@ -24,8 +24,8 @@ #include "rs_insert.h" #include "rs_spline.h" #include "rs_information.h" -#include "rs_graphicview.h" -#include "paintintf.h" +#include "graphicview.h" +#include "paintinterface.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;