]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.2
authorfred <fred>
Thu, 10 Oct 1996 12:24:05 +0000 (12:24 +0000)
committerfred <fred>
Thu, 10 Oct 1996 12:24:05 +0000 (12:24 +0000)
item.cc
rhythmstaf.cc

diff --git a/item.cc b/item.cc
index 5856156a66633c7399a11c202b18771b42d04eef..72f447be94cb47eecca35b7070e568b563543781 100644 (file)
--- a/item.cc
+++ b/item.cc
@@ -1,7 +1,7 @@
 #include "line.hh"
-
-
+#include "symbol.hh"
 #include "cols.hh"
+
 String
 Spanner::TeXstring() const
 {
@@ -39,6 +39,12 @@ Item::width() const
     return output->extent().x;
 }
 
+Interval
+Item::height() const
+{
+    return output->extent().y;
+}
+
 /****************************************************************/
 
 Item::Item()
index 61eca843f807f410ced7ea95bd967664813f02a4..a7fade6fc5f487378434f554eab1f7c59798f18c 100644 (file)
@@ -7,7 +7,7 @@
 #include "command.hh"
 #include "molecule.hh"
 #include "rhythmstaf.hh"
-
+#include "symbol.hh"
  
 
 Rhythmic_column::Rhythmic_column(Score_column*s, Rhythmic_staff *rs)
@@ -93,8 +93,8 @@ Rhythmic_column::typeset_command(Command *com, int breakst)
     Item *i = new Item;
     const Symbol*s=0;
 
-    if (com -> args[0] ==  "|" ) {
-       s = Symbol::find_bar("|");      
+    if (com -> args[0] ==  "BAR" ) {
+       s = Symbol::find_bar(com->args[1]);     
     } else
        assert(false);