]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/abbrev.cc
release: 1.1.0
[lilypond.git] / lily / abbrev.cc
index 323bf8ddd8b4a09f8ec8942db190bf826d9040d0..eb87945cd775fbac66812fdb3a74982a89f005f3 100644 (file)
@@ -13,7 +13,6 @@
 #include "paper-def.hh"
 #include "lookup.hh"
 #include "stem.hh"
-#include "dimension.hh"
 
 Abbreviation::Abbreviation ()
 {
@@ -33,7 +32,6 @@ Abbreviation::brew_molecule_p () const
   Real interbeam_f = paper ()->interbeam_f (stem_l_->mult_i_);
   Real w = 1.5 * lookup_l ()->ball (2).dim_.x ().length ();
   Real internote_f = paper ()->internote_f ();
-  Real interline_f = paper ()->interline_f ();
   Real beam_f = paper ()->beam_thickness_f ();
 
   int beams_i = 0;
@@ -131,7 +129,7 @@ void
 Abbreviation::do_substitute_dependent (Score_element*o, Score_element*n)
 {
   if (stem_l_ == o)
-    stem_l_ = n ? (Stem*)n->access_Item () : 0;
+    stem_l_ = n ? dynamic_cast<Stem*> (n) : 0;
 }