[mapguide-commits] r5057 -
trunk/Tools/Maestro/Maestro/ResourceEditors
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Jul 27 22:48:32 EDT 2010
Author: jng
Date: 2010-07-28 02:48:32 +0000 (Wed, 28 Jul 2010)
New Revision: 5057
Modified:
trunk/Tools/Maestro/Maestro/ResourceEditors/XmlEditorControl.cs
Log:
Allow replacement with empty strings in XML editor
Modified: trunk/Tools/Maestro/Maestro/ResourceEditors/XmlEditorControl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro/ResourceEditors/XmlEditorControl.cs 2010-07-27 23:12:39 UTC (rev 5056)
+++ trunk/Tools/Maestro/Maestro/ResourceEditors/XmlEditorControl.cs 2010-07-28 02:48:32 UTC (rev 5057)
@@ -840,14 +840,8 @@
szFindInstance = szFind;
}
- String szHighlight;
- if (String.IsNullOrEmpty(szReplace))
- szHighlight = szFindInstance;
- else
- {
- textEditor.Text = textEditor.Text.Replace(szFindInstance, szReplace);
- szHighlight = szReplace;
- }
+ textEditor.Text = textEditor.Text.Replace(szFindInstance, szReplace);
+ String szHighlight = szReplace;
int iFound = textEditor.Text.IndexOf(szHighlight, iStartSearching);
if (iFound > -1)
More information about the mapguide-commits
mailing list