From ebe32890fbbad9a4212826ef154d438e1836a76f Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 11 Mar 2012 23:05:02 +0000 Subject: [PATCH] Don't scroll to the beginning of the audio when switching to an untimed line Originally committed to SVN as r6565. --- aegisub/src/audio_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/audio_display.cpp b/aegisub/src/audio_display.cpp index c23199d3d..770fbb3d6 100644 --- a/aegisub/src/audio_display.cpp +++ b/aegisub/src/audio_display.cpp @@ -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); }