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:
parent
f269d7c56e
commit
e194df1fb3
|
@ -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 ();
|
||||
|
|
Loading…
Reference in New Issue
Block a user