forked from mia/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
1 changed files with 2 additions and 1 deletions
|
@ -260,7 +260,8 @@ wxString TextFileReader::ReadLineFromFile() {
|
|||
}
|
||||
#else
|
||||
getline(file,buffer);
|
||||
wxbuffer = wxString(buffer.c_str(),*conv);
|
||||
wxbuffer.Clear();
|
||||
if (buffer.length()) wxbuffer = wxString(buffer.c_str(),*conv);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue