]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/text-metrics.cc
* lily/include/tie.hh (struct Tie_details): add x_gap_
[lilypond.git] / lily / text-metrics.cc
index 927a9d39e950fb9a331421bfc32a2ff36450ef64..93495258538838c5f5abf8bf44bde6f06db6eb2c 100644 (file)
@@ -63,9 +63,7 @@ LY_DEFINE (ly_load_text_dimensions, "ly:load-text-dimensions",
 
       if (scm_hash_ref (text_dimension_hash_tab, key, SCM_BOOL_F)
          == SCM_BOOL_F)
-       {
-         scm_hash_set_x (text_dimension_hash_tab, key, val);
-       }
+       scm_hash_set_x (text_dimension_hash_tab, key, val);
     }
 
   return SCM_UNSPECIFIED;
@@ -77,7 +75,7 @@ try_load_text_metrics (String basename)
   String path = global_path.find (basename + ".textmetrics");
   if (path != "")
     {
-      String contents (gulp_file_to_string (path, true));
+      String contents (gulp_file_to_string (path, true, -1));
       contents = "(quote (" + contents + "))";
 
       SCM lst = scm_c_eval_string (contents.to_str0 ());