From 8d797046a723631bf556146abb39f2669cccb048 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Fri, 26 Oct 2007 19:27:42 +0000 Subject: [PATCH] Fix for keyframe file reading Originally committed to SVN as r1624. --- aegisub/keyframe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/keyframe.cpp b/aegisub/keyframe.cpp index 8efc6badb..903c514b8 100644 --- a/aegisub/keyframe.cpp +++ b/aegisub/keyframe.cpp @@ -122,7 +122,7 @@ void KeyFrameFile::OpenAegiKeyFrames(TextFileReader& file, wxArrayInt& keyFrames // Read lines while (file.HasMoreLines()) { cur = file.ReadLineFromFile(); - if (!cur.IsEmpty() && cur.StartsWith(_T("#")) && cur.IsNumber()) { + if (!cur.IsEmpty() && !cur.StartsWith(_T("#")) && cur.IsNumber()) { long temp; cur.ToLong(&temp); keyFrames.Add(temp);