From 3327fc015480b074a2e199d618b2199c192c15ff Mon Sep 17 00:00:00 2001
From: Rodrigo Braz Monteiro <zeratul@cellosoft.com>
Date: Thu, 6 Mar 2008 19:43:47 +0000
Subject: [PATCH] Fixed issue #674, related to ScaledBorderAndShadow being
 erased by Clean Script Info

Originally committed to SVN as r1922.
---
 aegisub/export_clean_info.cpp | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/aegisub/export_clean_info.cpp b/aegisub/export_clean_info.cpp
index 1b1389950..3ea0e1a61 100644
--- a/aegisub/export_clean_info.cpp
+++ b/aegisub/export_clean_info.cpp
@@ -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);
 		}
-- 
GitLab