[Wixedit-commits] wixedit/src OutputPanel.cs,1.24,1.25
Project moved to Github: https://github.com/WixEdit/WixEdit
Brought to you by:
jaykee
From: Jasper K. <ja...@us...> - 2007-01-20 14:25:44
|
Update of /cvsroot/wixedit/wixedit/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17615/src Modified Files: OutputPanel.cs Log Message: Fixed index bug Index: OutputPanel.cs =================================================================== RCS file: /cvsroot/wixedit/wixedit/src/OutputPanel.cs,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** OutputPanel.cs 7 Jan 2007 00:26:19 -0000 1.24 --- OutputPanel.cs 20 Jan 2007 14:25:40 -0000 1.25 *************** *** 181,185 **** int bracketEnd = text.IndexOf(") : "); ! int bracketStart = text.LastIndexOf("(", bracketEnd, bracketEnd); if (bracketStart == -1 || bracketEnd == -1) { --- 181,188 ---- int bracketEnd = text.IndexOf(") : "); ! int bracketStart = -1; ! if (bracketEnd > -1) { ! bracketStart = text.LastIndexOf("(", bracketEnd, bracketEnd); ! } if (bracketStart == -1 || bracketEnd == -1) { |