forked from mia/Aegisub
Fixed loading of sections with unexpected cases.
Originally committed to SVN as r528.
This commit is contained in:
parent
0fa1abf273
commit
deea37e0ba
2 changed files with 10 additions and 5 deletions
|
@ -255,7 +255,7 @@ int AssFile::AddLine (wxString data,wxString group,int lasttime,bool &IsSSA,wxSt
|
||||||
if (outGroup) *outGroup = group;
|
if (outGroup) *outGroup = group;
|
||||||
|
|
||||||
// Attachment
|
// Attachment
|
||||||
if (group == _T("[Fonts]") || group == _T("[Graphics]")) {
|
if (group.Lower() == _T("[fonts]") || group.Lower() == _T("[graphics]")) {
|
||||||
// Check if it's valid data
|
// Check if it's valid data
|
||||||
size_t dataLen = data.Length();
|
size_t dataLen = data.Length();
|
||||||
bool validData = (dataLen > 0) && (dataLen <= 80);
|
bool validData = (dataLen > 0) && (dataLen <= 80);
|
||||||
|
@ -310,7 +310,7 @@ int AssFile::AddLine (wxString data,wxString group,int lasttime,bool &IsSSA,wxSt
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dialogue
|
// Dialogue
|
||||||
if (group == _T("[Events]")) {
|
if (group.Lower() == _T("[events]")) {
|
||||||
if ((data.Left(9) == _T("Dialogue:") || data.Left(8) == _T("Comment:"))) {
|
if ((data.Left(9) == _T("Dialogue:") || data.Left(8) == _T("Comment:"))) {
|
||||||
AssDialogue *diag = new AssDialogue(data,IsSSA);
|
AssDialogue *diag = new AssDialogue(data,IsSSA);
|
||||||
lasttime = diag->Start.GetMS();
|
lasttime = diag->Start.GetMS();
|
||||||
|
@ -327,7 +327,7 @@ int AssFile::AddLine (wxString data,wxString group,int lasttime,bool &IsSSA,wxSt
|
||||||
}
|
}
|
||||||
|
|
||||||
// Style
|
// Style
|
||||||
else if (group == _T("[V4+ Styles]")) {
|
else if (group.Lower() == _T("[v4+ styles]")) {
|
||||||
if (data.Left(6) == _T("Style:")) {
|
if (data.Left(6) == _T("Style:")) {
|
||||||
AssStyle *style = new AssStyle(data,IsSSA);
|
AssStyle *style = new AssStyle(data,IsSSA);
|
||||||
entry = style;
|
entry = style;
|
||||||
|
@ -342,7 +342,7 @@ int AssFile::AddLine (wxString data,wxString group,int lasttime,bool &IsSSA,wxSt
|
||||||
}
|
}
|
||||||
|
|
||||||
// Script info
|
// Script info
|
||||||
else if (group == _T("[Script Info]")) {
|
else if (group.Lower() == _T("[script info]")) {
|
||||||
// Comment
|
// Comment
|
||||||
if (data.Left(1) == _T(";")) {
|
if (data.Left(1) == _T(";")) {
|
||||||
// Skip stupid comments added by other programs
|
// Skip stupid comments added by other programs
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
Aegisub changelog
|
Aegisub changelog
|
||||||
Please visit http://aegisub.net to download latest version
|
Please visit http://aegisub.net to download latest version
|
||||||
|
|
||||||
= 1.10 beta - 2006.03.xx ===========================
|
= 1.11 beta - 2006.xx.xx ===========================
|
||||||
|
|
||||||
|
- Fixed loading of sections with unexpected cases.
|
||||||
|
|
||||||
|
|
||||||
|
= 1.10 beta - 2006.08.07 ===========================
|
||||||
|
|
||||||
- Always defaults to Audio Cache=1 (ram) now (Myrsloik)
|
- Always defaults to Audio Cache=1 (ram) now (Myrsloik)
|
||||||
- Automation: Added xor(a,b) boolean logical function to utils.lua (jfs)
|
- Automation: Added xor(a,b) boolean logical function to utils.lua (jfs)
|
||||||
|
|
Loading…
Reference in a new issue