From: fred Date: Tue, 26 Mar 2002 22:47:26 +0000 (+0000) Subject: lilypond-1.3.39 X-Git-Tag: release/1.5.59~1803 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=15ca7ab031c36d9db19220674babc33e65744dae;p=lilypond.git lilypond-1.3.39 --- diff --git a/input/test/incipit.ly b/input/test/incipit.ly index 3d06b9be56..a64d76932c 100644 --- a/input/test/incipit.ly +++ b/input/test/incipit.ly @@ -16,15 +16,17 @@ violin = \notes\relative c''{ \specialkey \keysignature f' fis'' g' gis''; \time 2/2; + \key; a4. b8 c4 fis | gis~ gis8 fis16^\trill ()e b8 c \context Staff<{\voiceone a d}{\voicetwo es,4}>| } BC = \notes\relative c{ - \key D; + \key d; \time 2/2; \clef "bass"; + \key; b2. cis4 | d e fis g | } diff --git a/lily/command-request.cc b/lily/command-request.cc index 68016b6683..af9e706632 100644 --- a/lily/command-request.cc +++ b/lily/command-request.cc @@ -100,32 +100,27 @@ Tempo_req::do_equal_b (Request const *r) const return t&& t->dur_.length_mom ()== dur_.length_mom () && metronome_i_ == t->metronome_i_; } - - - void Key_change_req::do_print () const { -#if 0 - key_->print(); -#endif } Key_change_req::Key_change_req () { key_ = 0; } + Key_change_req::Key_change_req (Key_change_req const&s) : Request (s) { - key_ = new Key_def (*s.key_); + key_ = s.key_ ? new Key_def (*s.key_) : 0; } + Key_change_req::~Key_change_req () { delete key_; } - Break_req::Break_req () { }