]> git.donarmstrong.com Git - lilypond.git/commitdiff
(get_line): backport off by two fix from
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 18 Jan 2003 23:15:57 +0000 (23:15 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 18 Jan 2003 23:15:57 +0000 (23:15 +0000)
development release.

ChangeLog
Documentation/user/refman.itely
lily/source-file.cc
po/da.po

index 374fb5dca2edb7e5d90471351f47f472b5130b1c..ecef1aea30436d68978339d83c3decfc21226f46 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-19  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
+
+       * lily/source-file.cc (get_line): backport off by two fix from
+       development release.
+
 2002-11-21  Mats Bengtsson  <mats.bengtsson@s3.kth.se>
 
        * lily/volta-engraver.cc (process_acknowledged_grobs): 
index 38d1b90e40b366411417a7c2a6d7932add478e1f..e7a613660005bc6e9cb4dc694ebacc437ea480ab 100644 (file)
@@ -3420,7 +3420,7 @@ at the beginning of the next line, opposite to what you want for the
 fermata. This can be corrected by the following property setting
 @example
 \property Score.RehearsalMark \override
-  #'visibility-lambda = #begin-of-line-invisible
+  #'break-visibility = #begin-of-line-invisible
 @end example
 
 @cindex fermatas
index 23cf17cf7c0e6f514912fbae7d33f2a6b9a322d4..85ed8ca64b0d6e1360c749a5ad4235d1c77ea36a 100644 (file)
@@ -262,15 +262,26 @@ Source_file::get_line (char const* pos_str0) const
   if (!in_b (pos_str0))
     return 0;
 
+  if (!newline_locations_.size())
+    return 1;
+  
+
   int lo=0;
   int hi = newline_locations_.size();
+  if (newline_locations_[lo] > pos_str0)
+    return 1;
   
+  if (newline_locations_[hi-1] < pos_str0)
+    return hi;
+
   binary_search_bounds (newline_locations_,
                        pos_str0, 
                        Link_array<char>::default_compare,
                        &lo, &hi);
   
-  return lo;
+  if (*pos_str0 == '\n')
+    lo --;
+  return lo + 2;
 }
 
 int
index 2e737d14df7156da7669c6f42ec27adb94578dd1..bc35d60622516a2d82a6291ddcfea47ae2e88e78 100644 (file)
--- a/po/da.po
+++ b/po/da.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lilypond 1.6.0\n"
 "POT-Creation-Date: 2002-08-18 17:05+0200\n"
-"PO-Revision-Date: 2002-09-07 21:00+0200\n"
+"PO-Revision-Date: 2003-01-17 21:00+0200\n"
 "Last-Translator: Keld Simonsen <keld@dkuug.dk>\n"
 "Language-Team: Danish <dansk@klid.dk>\n"
 "MIME-Version: 1.0\n"
@@ -21,7 +21,7 @@ msgstr "K
 
 #: ly2dvi.py:118
 msgid "Distributed under terms of the GNU General Public License.  It comes with NO WARRANTY."
-msgstr ""
+msgstr "Distribueret under betingelserne i GNU Generelle Offentlige Licens (GLP). Den leveres UDEN NOGEN GARANTIER."
 
 #: ly2dvi.py:125 midi2ly.py:148 mup2ly.py:143 update-lily.py:137 input.cc:87
 msgid "warning: "
@@ -274,9 +274,8 @@ msgid "ALT[:MINOR]"
 msgstr ""
 
 #: midi2ly.py:99
-#, fuzzy
 msgid "set key: ALT=+sharps|-flats; MINOR=1"
-msgstr "sæt toneart: TONE +forhøjelser/-sænkninger; :1 mol"
+msgstr "sæt toneart: TONE=+forhøjelser/-sænkninger; mol=1"
 
 #: midi2ly.py:101
 msgid "quantise note starts on DUR"