]> git.donarmstrong.com Git - lilypond.git/commitdiff
cache minimum-?-extent symbols in align-interface.c
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 5 Feb 2007 22:02:41 +0000 (23:02 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 5 Feb 2007 22:02:41 +0000 (23:02 +0100)
lily/align-interface.cc

index efb7986a217ac0bcce84ccf071909af5157990ca..7294335bd9845d961cc1457b3880f936e8632f79 100644 (file)
@@ -129,7 +129,9 @@ get_skylines (Grob *me,
          /* this is perhaps an abuse of minimum-?-extent: maybe we should create
             another property? But it seems that the only (current) use of
             minimum-Y-extent is to separate vertically-aligned elements */
-         SCM min_extent = g->get_property (a == X_AXIS ? "minimum-X-extent" : "minimum-Y-extent");
+         SCM min_extent = g->get_property (a == X_AXIS
+                                           ? ly_symbol2scm ("minimum-X-extent")
+                                           : ly_symbol2scm ("minimum-Y-extent"));
 
          if (is_number_pair (min_extent))
            {