Don't scroll to the beginning of the audio when switching to an untimed line

Originally committed to SVN as r6565.
This commit is contained in:
Thomas Goyne 2012-03-11 23:05:02 +00:00
parent 1d4c0c0712
commit ebe32890fb

View file

@ -1245,7 +1245,7 @@ void AudioDisplay::OnSelectionChanged()
ScrollBy(rel_x - width + width / 20);
}
}
else if (OPT_GET("Audio/Auto/Scroll")->GetBool())
else if (OPT_GET("Audio/Auto/Scroll")->GetBool() && sel.end() != 0)
{
ScrollTimeRangeInView(sel);
}