Index: lily/page-breaking.cc |
diff --git a/lily/page-breaking.cc b/lily/page-breaking.cc |
index 18582a607dee8abd6f5fffa41eef553752641c61..9a6f8f40f25c0edbe47f45ecde1780c2babc89b6 100644 |
--- a/lily/page-breaking.cc |
+++ b/lily/page-breaking.cc |
@@ -504,7 +504,7 @@ Page_breaking::page_height (int page_num, bool last) const |
// This means that we won't cache properly if page_num is negative or |
// if calc_height returns a negative number. But that's likely to |
// be rare, so it shouldn't affect performance. |
- vector<Real>& cache = last ? last_page_height_cache_ : page_height_cache_; |
+ vector<Real> &cache = last ? last_page_height_cache_ : page_height_cache_; |
if (page_num >= 0 && (int) cache.size () > page_num && cache[page_num] >= 0) |
return cache[page_num]; |
else |