summaryrefslogtreecommitdiff
path: root/libs/canvas/item.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-04-08 19:48:09 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-04-08 19:48:09 -0400
commit1267b1d61cbce8688f3d0f1c4c7932de49735e75 (patch)
treed8554757715907dda8464b026e467f5832d426b4 /libs/canvas/item.cc
parent18048747b61017c04399a29fc39d97b652b101e6 (diff)
mo' better debugging of canvas "structure" via Item::dump and derivatives
Diffstat (limited to 'libs/canvas/item.cc')
-rw-r--r--libs/canvas/item.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc
index 340c503fe7..9b44c333f5 100644
--- a/libs/canvas/item.cc
+++ b/libs/canvas/item.cc
@@ -341,11 +341,17 @@ Item::dump (ostream& o) const
boost::optional<Rect> bb = bounding_box();
o << _canvas->indent() << whatami() << ' ' << this;
+
+#ifdef CANVAS_DEBUG
+ if (!name.empty()) {
+ o << ' ' << name;
+ }
+#endif
if (bb) {
o << endl << _canvas->indent() << "\tbbox: " << bb.get();
} else {
- o << "bbox unset";
+ o << " bbox unset";
}
o << endl;