that happen at the start of a score: having a zero-length
chunk was messing up min_system_count calculations.
* lily/source-file.cc (get_line): lower_bound, not
binary_search. Fixes problem where point-and-click would
always point to the first line.
+2006-09-20 Joe Neeman <joeneeman@gmail.com>
+
+ * lily/page-breaking.cc (find_chunks_and_breaks): ignore breaks
+ that happen at the start of a score: having a zero-length
+ chunk was messing up min_system_count calculations.
+
+ * lily/source-file.cc (get_line): lower_bound, not
+ binary_search. Fixes problem where point-and-click would
+ always point to the first line.
+
2006-09-20 Han-Wen Nienhuys <hanwen@lilypond.org>
* lily/tie-engraver.cc (process_music): also set tieMelismaBusy if
vector<vsize> line_breaker_columns;
line_breaker_columns.push_back (0);
- for (vsize j = 0; j < cols.size (); j++)
+ for (vsize j = 1; j < cols.size (); j++)
{
bool last = j == cols.size () - 1;
bool break_point = is_break (cols[j]);
if (newline_locations_[hi - 1] < pos_str0)
return hi;
- lo = binary_search (newline_locations_,
- pos_str0,
- less<char const*> (),
- lo, hi);
-
+ lo = lower_bound (newline_locations_,
+ pos_str0,
+ less<char const*> (),
+ lo, hi);
if (*pos_str0 == '\n')
lo--;