X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftext-metrics.cc;h=93495258538838c5f5abf8bf44bde6f06db6eb2c;hb=7eec42b50cda1f53fa25414abf07280c01f7753e;hp=927a9d39e950fb9a331421bfc32a2ff36450ef64;hpb=58bcc84c9480dae1b21bc24d8396b91fe19e0131;p=lilypond.git diff --git a/lily/text-metrics.cc b/lily/text-metrics.cc index 927a9d39e9..9349525853 100644 --- a/lily/text-metrics.cc +++ b/lily/text-metrics.cc @@ -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 ());