]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_line.cpp
Fixed Library Browser...
[architektonas] / src / base / rs_line.cpp
index f67d1089c056e101a979a17490f4cdedef5d22c2..d571aa670ed16eb12109ae003ecb177429a12f33 100644 (file)
@@ -3,7 +3,9 @@
 // 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
+// Portions copyright (C) 2001-2003 RibbonSoft
+// Copyright (C) 2010 Underground Software
+// See the README and GPLv2 files for licensing and warranty information
 //
 // JLH = James L. Hammons <jlhamm@acm.org>
 //
@@ -18,7 +20,7 @@
 #include "drawing.h"
 #include "graphicview.h"
 #include "rs_linetypepattern.h"
-#include "paintintf.h"
+#include "paintinterface.h"
 
 /**
  * Constructor.
@@ -487,7 +489,7 @@ void RS_Line::moveRef(const Vector& ref, const Vector& offset)
 
 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;
@@ -516,7 +518,7 @@ void RS_Line::draw(PaintInterface * painter, GraphicView * view, double patternO
        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");