fixed unity-line alignment for horiz faders.
git-svn-id: svn://localhost/ardour2/branches/3.0@13837 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -519,7 +519,7 @@ PixFader::update_unity_position ()
|
||||
if (_orien == VERT) {
|
||||
unity_loc = (int) rint (span * (1 - (default_value / (adjustment.get_upper() - adjustment.get_lower())))) - 1;
|
||||
} else {
|
||||
unity_loc = (int) rint (default_value * span);
|
||||
unity_loc = (int) rint (default_value * span / (adjustment.get_upper() - adjustment.get_lower()));
|
||||
}
|
||||
|
||||
queue_draw ();
|
||||
|
||||
Reference in New Issue
Block a user