projects
/
lilypond.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9b7e3c
)
Fix off-by-one error in max_system_count.
author
Joe Neeman
<joeneeman@gmail.com>
Thu, 15 Nov 2007 05:35:03 +0000
(16:35 +1100)
committer
Joe Neeman
<joeneeman@gmail.com>
Sat, 17 Nov 2007 22:59:37 +0000
(09:59 +1100)
lily/constrained-breaking.cc
patch
|
blob
|
history
diff --git
a/lily/constrained-breaking.cc
b/lily/constrained-breaking.cc
index 0838dea0319a2397a8fea5036446bee721ce7506..1efae87e125047bdd317595a6124408fc5c98e4f 100644
(file)
--- a/
lily/constrained-breaking.cc
+++ b/
lily/constrained-breaking.cc
@@
-265,7
+265,7
@@
Constrained_breaking::min_system_count (vsize start, vsize end)
int
Constrained_breaking::max_system_count (vsize start, vsize end)
{
- vsize brk = (end >= start_.size ()) ? breaks_.size () : starting_breakpoints_[end];
+ vsize brk = (end >= start_.size ()) ? breaks_.size ()
- 1
: starting_breakpoints_[end];
return brk - starting_breakpoints_[start];
}