summaryrefslogtreecommitdiff
path: root/calcideal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'calcideal.cc')
-rw-r--r--calcideal.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/calcideal.cc b/calcideal.cc
index b1410aefc0..bddd4f2897 100644
--- a/calcideal.cc
+++ b/calcideal.cc
@@ -2,7 +2,9 @@
#include "score.hh"
#include "pscore.hh"
#include "staff.hh"
+#include "paper.hh"
#include "misc.hh"
+#include "sccol.hh"
#include "debug.hh"
@@ -48,7 +50,7 @@ Score::calc_idealspacing()
if (sc->musical)
for (int i=0; i < sc->durations.sz(); i++) {
Mtime d = sc->durations[i];
- Real dist = duration_to_idealspace(d);
+ Real dist = duration_to_idealspace(d, paper->whole_width);
PCol * c2 = find_col(sc->when + d,true)->pcol;
connect_nonmus(sc->pcol, c2, dist);
c2 = find_col(sc->when + d,false)->pcol;