]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/key-performer.cc
release: 1.1.0
[lilypond.git] / lily / key-performer.cc
index 527cf06cbbf6efcfbbc637179b68c0f8bbebc286..3ccac03e21537a71d0b589984c1624838e53638c 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1998 Jan Nieuwenhuizen <jan@digicash.com>
+  (c)  1997--1998 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #include "key-performer.hh"
@@ -47,11 +47,11 @@ Key_performer::do_try_request (Request* req_l)
   if (key_req_l_)
        return false;
 
-  if (req_l->command())
-       key_req_l_ = req_l->command()->keychange ();
-
-  if (key_req_l_)
-       return true;
+  if (dynamic_cast <Key_change_req *> (req_l))
+    {
+      key_req_l_ = dynamic_cast <Key_change_req*> (req_l);
+      return true;
+    }
 
   return false;
 }