mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Fix for keyframe file reading
Originally committed to SVN as r1624.
This commit is contained in:
parent
d761baadf3
commit
8d797046a7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user