]> Shamusworld >> Repos - architektonas/blobdiff - src/base/entity.cpp
Fixed hatch dialog, added snap/preview to circle tools.
[architektonas] / src / base / entity.cpp
index b963731bf22d411f902d2d59b36c30a6ab4aa200..b9c42e3f5df5e08c4cd1525bf0acbae0f0ba1628 100644 (file)
@@ -202,10 +202,10 @@ bool Entity::isParentSelected()
        {
                p = p->getParent();
 
-               if (p != NULL && p->isSelected() == true)
+               if (p && p->isSelected() == true)
                        return true;
        }
-       while(p != NULL);
+       while (p);
 
        return false;
 }
@@ -1058,7 +1058,7 @@ std::ostream & operator<<(std::ostream & os, Entity & e)
        }
 #endif
 
-       // There should be a better way then this...
+       // There should be a better way than this...
        switch (e.rtti())
        {
        case RS2::EntityPoint: