]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/item.cc
release: 1.3.39
[lilypond.git] / lily / item.cc
index 45cea7a7c4b211c2efb4f0256544f989c0ca1ba1..0458144c3513ced1cc671d0b7526889ae7eccf20 100644 (file)
@@ -44,9 +44,7 @@ Line_of_score *
 Item::line_l() const
 {
   Score_element *g = parent_l (X_AXIS);
-  if (!g)
-    return 0;
-  return dynamic_cast<Score_element *> (g)-> line_l ();
+  return g ?  g->line_l () : 0;
 }