/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 2007--2011 Joe Neeman <joeneeman@gmail.com>
+ Copyright (C) 2007--2012 Joe Neeman <joeneeman@gmail.com>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
min_distance = max (springs[i].min_distance (), min_distance);
}
- avg_stretch /= springs.size ();
- avg_compress /= springs.size ();
- avg_distance /= springs.size ();
+ avg_stretch /= Real (springs.size ());
+ avg_compress /= Real (springs.size ());
+ avg_distance /= Real (springs.size ());
avg_distance = max (min_distance + 0.3, avg_distance);
Spring ret = Spring (avg_distance, min_distance);