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

View file

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