B2013-076: Fixed a few bugs in resolving transitions text (sometimes leaving off ‘(‘ or ‘)’)
This commit is contained in:
parent
89dd2f72b0
commit
69b14e912c
@ -1003,7 +1003,7 @@ namespace VEPROMS
|
||||
if (dr == DialogResult.OK && displayLibDocs.LibDocList != null)
|
||||
{
|
||||
displayLibDocs.LibDocListFillIn(tc);
|
||||
|
||||
displayLibDocs.SetSelectedLibDoc();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -406,8 +406,13 @@ namespace VEPROMS.CSLA.Library
|
||||
_Results.Append(Prefix);
|
||||
_Prefix = null;
|
||||
}
|
||||
// If the prefix contains an open paren, we want to add the open paren regardless
|
||||
// of whether there already is text in the resulting string.
|
||||
else if (!HasText && Prefix != null && Prefix.Contains("("))
|
||||
{
|
||||
_Results.Append(Prefix.TrimStart(" ".ToCharArray())); // since no text in result, trim starting space.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public string OverridePrefix
|
||||
{
|
||||
@ -541,7 +546,7 @@ namespace VEPROMS.CSLA.Library
|
||||
prevToken = token;
|
||||
if (startIndex >= tb._TransFormat.Length) break;
|
||||
}
|
||||
if (startIndex < tb._TransFormat.Length) tb.Append(tb._TransFormat.Substring(startIndex, tb._TransFormat.Length - startIndex - 1));
|
||||
if ((startIndex < tb._TransFormat.Length) && lastAdded) tb.Append(tb._TransFormat.Substring(startIndex, tb._TransFormat.Length - startIndex));
|
||||
return (tb.ToString());
|
||||
}
|
||||
|
||||
|
@ -61,6 +61,14 @@ namespace Volian.Controls.Library
|
||||
listBoxUsages.Items.Clear();
|
||||
_InitializingLibDocList = false;
|
||||
}
|
||||
public void SetSelectedLibDoc()
|
||||
{
|
||||
if (_SelectedLibDoc >= 0)
|
||||
{
|
||||
if (_SelectedLibDoc > listBoxLibDocs.Items.Count) return;
|
||||
listBoxLibDocs.SelectedIndex = _SelectedLibDoc;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region Events
|
||||
public event DisplayLibDocEvent PrintRequest;
|
||||
|
Loading…
x
Reference in New Issue
Block a user