Fixed issue #674, related to ScaledBorderAndShadow being erased by Clean Script Info

Originally committed to SVN as r1922.
This commit is contained in:
Rodrigo Braz Monteiro 2008-03-06 19:43:47 +00:00
parent 853fbfaebd
commit 3327fc0154
1 changed files with 7 additions and 6 deletions

View File

@ -83,12 +83,13 @@ void AssTransformCleanInfoFilter::ProcessSubs(AssFile *subs, wxWindow *export_di
continue; continue;
} }
wxString field = curEntry->GetEntryData().Left(curEntry->GetEntryData().Find(_T(':'))); wxString field = curEntry->GetEntryData().Left(curEntry->GetEntryData().Find(_T(':'))).Lower();
if (field != _T("ScriptType") && if (field != _T("scripttype") &&
field != _T("Collisions") && field != _T("collisions") &&
field != _T("PlayResX") && field != _T("playresx") &&
field != _T("PlayResY") && field != _T("playresy") &&
field != _T("WrapStyle")) { field != _T("wrapstyle") &&
field != _T("scaledborderandshadow")) {
delete curEntry; delete curEntry;
subs->Line.erase(cur); subs->Line.erase(cur);
} }