the horizontal position *is* the value of the horizontal adjustment.

Don't waste time getting a less accurate answer from sample_to_pixel() on
_leftmost_sample.
This commit is contained in:
Paul Davis 2024-06-06 16:07:24 -06:00
parent 663ed4cc5e
commit 1d53d89ade

View File

@ -2000,7 +2000,7 @@ EditingContext::pop_editing_context ()
double
EditingContext::horizontal_position () const
{
return sample_to_pixel (_leftmost_sample);
return horizontal_adjustment.get_value();
}
void