- fixed bug in regex generator for texture sets (* behaved as 'one or more characters', now behaves as 'zero or more characters')

- fixed bug in removing multiple selected texture sets at once (only removed one at a time)
This commit is contained in:
codeimp 2008-10-08 18:05:31 +00:00
parent bff42c7477
commit b5e1ecbec1
2 changed files with 4 additions and 4 deletions

View file

@ -105,12 +105,12 @@ namespace CodeImp.DoomBuilder.Config
ss = ss.Replace("#", "\\#");
ss = ss.Replace(" ", "\\ ");
// Replace the * with the regex code for optional multiple characters
ss = ss.Replace("*", ".*?");
// Replace the ? with the regex code for single character
ss = ss.Replace("?", ".");
// Replace the * with the regex code for optional multiple characters
ss = ss.Replace("*", ".*?");
// When a filter has already added, insert a conditional OR operator
if(regexstr.Length > 0) regexstr.Append("|");

View file

@ -382,7 +382,7 @@ namespace CodeImp.DoomBuilder.Windows
private void removetextureset_Click(object sender, EventArgs e)
{
// Texture Set selected?
if(listtextures.SelectedItems.Count > 0)
while(listtextures.SelectedItems.Count > 0)
{
// Remove from config info and list
DefinedTextureSet s = (listtextures.SelectedItems[0].Tag as DefinedTextureSet);