mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
handle invalid style storage exception
Originally committed to SVN as r247.
This commit is contained in:
parent
68cf63296f
commit
215696131b
@ -91,8 +91,12 @@ void AssStyleStorage::Load(wxString name) {
|
|||||||
wxString data(buffer,wxConvUTF8);
|
wxString data(buffer,wxConvUTF8);
|
||||||
data.Trim();
|
data.Trim();
|
||||||
if (data.substr(0,6) == _T("Style:")) {
|
if (data.substr(0,6) == _T("Style:")) {
|
||||||
curStyle = new AssStyle(data);
|
try {
|
||||||
style.push_back(curStyle);
|
curStyle = new AssStyle(data);
|
||||||
|
style.push_back(curStyle);
|
||||||
|
} catch(...) {
|
||||||
|
/* just ignore invalid lines for now */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user