]> Shamusworld >> Repos - architektonas/blobdiff - src/base/block.cpp
In the middle of chasing down MDI not activating bug, renaming of Graphic to
[architektonas] / src / base / block.cpp
index 967e7e52883e44eed8d8c5a72df4ecc58fa04c9b..9ce031e84372497ffc37664e26b92d949588f46c 100644 (file)
@@ -46,40 +46,40 @@ Entity * Block::clone()
 
 LayerList * Block::getLayerList()
 {
-       Drawing * g = getGraphic();
+       Drawing * d = GetDrawing();
 
-       if (g)
-               return g->getLayerList();
+       if (d)
+               return d->getLayerList();
 
        return NULL;
 }
 
 BlockList * Block::getBlockList()
 {
-       Drawing * g = getGraphic();
+       Drawing * d = GetDrawing();
 
-       if (g)
-               return g->getBlockList();
+       if (d)
+               return d->getBlockList();
 
        return NULL;
 }
 
 bool Block::save()
 {
-       Drawing * g = getGraphic();
+       Drawing * d = GetDrawing();
 
-       if (g)
-               return g->save();
+       if (d)
+               return d->save();
 
        return false;
 }
 
 bool Block::saveAs(const QString & filename, RS2::FormatType type)
 {
-       Drawing * g = getGraphic();
+       Drawing * d = GetDrawing();
 
-       if (g)
-               return g->saveAs(filename, type);
+       if (d)
+               return d->saveAs(filename, type);
 
        return false;
 }
@@ -87,14 +87,14 @@ bool Block::saveAs(const QString & filename, RS2::FormatType type)
 /**
  * Sets the parent documents modified status to 'm'.
  */
-void Block::setModified(bool m)
+void Block::setModified(bool state)
 {
-       Drawing * p = getGraphic();
+       Drawing * d = GetDrawing();
 
-       if (p)
-               p->setModified(m);
+       if (d)
+               d->setModified(state);
 
-       modified = m;
+       modified = state;
 }
 
 /** @return RS2::EntityBlock */