]> git.donarmstrong.com Git - lilypond.git/commitdiff
Do not explicitly assign break-visibility to the OctavateEight, use a callback to...
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 28 Dec 2010 23:25:58 +0000 (00:25 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 29 Dec 2010 01:06:34 +0000 (02:06 +0100)
lily/cue-clef-engraver.cc

index be4ddf44f766e75378981e9a60a63985a5e4056b..44deb2a703faa6052f571aaf10ccd03323e70af7 100644 (file)
@@ -122,12 +122,6 @@ Cue_clef_engraver::create_octavate_eight (SCM oct)
       g->set_parent (clef_, Y_AXIS);
       g->set_parent (clef_, X_AXIS);
       g->set_property ("direction", scm_from_int (dir));
-
-      // Inherit the break-visibility from the clef!
-      SCM vis = clef_->get_property ("break-visibility");
-      if (vis && g)
-       g->set_property ("break-visibility", vis);
-
       octavate_ = g;
     }
 }
@@ -207,11 +201,7 @@ Cue_clef_engraver::stop_translation_timestep ()
        vis = get_property ("explicitCueClefVisibility");
 
       if (vis)
-       {
-         clef_->set_property ("break-visibility", vis);
-         if (octavate_)
-           octavate_->set_property ("break-visibility", vis);
-       }
+       clef_->set_property ("break-visibility", vis);
 
       clef_ = 0;
       octavate_ = 0;