X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_line.cpp;h=32254bd2dbaf781b2b8314822bfd1d76764e3c07;hb=d774c2655ba2c3657a565f325411144452392277;hp=83f37421e88bc2f6395ba2988057847be6b562b3;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/base/rs_line.cpp b/src/base/rs_line.cpp index 83f3742..32254bd 100644 --- a/src/base/rs_line.cpp +++ b/src/base/rs_line.cpp @@ -1,10 +1,24 @@ +// rs_line.cpp +// +// Part of the Architektonas Project +// Originally part of QCad Community Edition by Andrew Mustun +// Extensively rewritten and refactored by James L. Hammons +// (C) 2010 Underground Software +// +// JLH = James L. Hammons +// +// Who When What +// --- ---------- ----------------------------------------------------------- +// JLH 06/01/2010 Added this text. :-) +// #include "rs_line.h" #include "rs_debug.h" -#include "rs_graphicview.h" -#include "rs_graphic.h" -#include "paintintf.h" +#include "drawing.h" +#include "graphicview.h" +#include "rs_linetypepattern.h" +#include "paintinterface.h" /** * Constructor. @@ -471,10 +485,9 @@ void RS_Line::moveRef(const Vector& ref, const Vector& offset) } } -//void RS_Line::draw(RS_Painter * painter, RS_GraphicView * view, double patternOffset) -void RS_Line::draw(PaintInterface * painter, RS_GraphicView * view, double patternOffset) +void RS_Line::draw(PaintInterface * painter, GraphicView * view, double patternOffset) { - if (painter == NULL || view == NULL) + if (!painter || !view) //{ //printf("RS_Line::draw(): Bailing out!!! painter=%08X, view=%08X\n", painter, view); return; @@ -503,7 +516,7 @@ void RS_Line::draw(PaintInterface * painter, RS_GraphicView * view, double patte RS_LineTypePattern * pat = (isSelected() ? &patternSelected : view->getPattern(getPen().getLineType())); #endif - if (pat == NULL) + if (!pat) { //printf("RS_Line::draw(): Pattern == NULL!\n"); RS_DEBUG->print(RS_Debug::D_WARNING, "RS_Line::draw: Invalid line pattern");