#include "single-malt-grouping-item.hh"
#include "p-col.hh"
+#include "debug.hh"
Single_malt_grouping_item ::Single_malt_grouping_item()
{
transparent_b_ = true;
+ set_empty (true);
}
void
}
Interval
-Single_malt_grouping_item::do_width () const
+Single_malt_grouping_item::my_width () const
{
Paper_column * pc = column_l ();
Interval w;
w.unite (il->width () + il->relative_coordinate (pc, X_AXIS));
}
- return w + (- relative_coordinate (pc, X_AXIS)); // TODO
+ return w;
+ // add this->offset_ ? this-> relative_coordinate ()?
}
IMPLEMENT_IS_TYPE_B1(Single_malt_grouping_item, Item);
item_l_arr_.unordered_substitute (o->item (), n ? n->item () : 0);
}
}
+
+void
+Single_malt_grouping_item::do_print () const
+{
+#ifndef NDEBUG
+ for (int i=0; i < item_l_arr_.size (); i++)
+ {
+ DOUT << item_l_arr_[i]->name () << ", ";
+ }
+#endif
+}