mirror of https://github.com/odrling/Aegisub
Fixed crash when attempting to load an empty file.
Originally committed to SVN as r1773.
This commit is contained in:
parent
dca02bd76d
commit
c9f31a2d83
|
@ -260,7 +260,8 @@ wxString TextFileReader::ReadLineFromFile() {
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
getline(file,buffer);
|
getline(file,buffer);
|
||||||
wxbuffer = wxString(buffer.c_str(),*conv);
|
wxbuffer.Clear();
|
||||||
|
if (buffer.length()) wxbuffer = wxString(buffer.c_str(),*conv);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue