Browse Source

fix exception 3265 again

pull/6/merge
Siegfried Pammer 13 years ago
parent
commit
dd1c8955f6
  1. 7
      src/AddIns/Debugger/Debugger.AddIn/Pads/Controls/WatchList.xaml.cs
  2. 4
      src/AddIns/Debugger/Debugger.AddIn/Pads/Controls/WatchListAutoCompleteCell.cs

7
src/AddIns/Debugger/Debugger.AddIn/Pads/Controls/WatchList.xaml.cs

@ -69,17 +69,18 @@ namespace Debugger.AddIn.Pads.Controls @@ -69,17 +69,18 @@ namespace Debugger.AddIn.Pads.Controls
void WatchListAutoCompleteCellCommandEntered(object sender, EventArgs e)
{
if (SelectedNode == null) return;
var selectedNode = SelectedNode;
if (selectedNode == null) return;
if (WatchType != WatchListType.Watch) return;
var cell = ((WatchListAutoCompleteCell)sender);
SelectedNode.Node.Name = cell.CommandText;
selectedNode.Node.Name = cell.CommandText;
myList.UnselectAll();
if (WatchType == WatchListType.Watch && WatchPad.Instance != null) {
WatchPad.Instance.InvalidatePad();
}
SelectedNode.IsEditing = false;
selectedNode.IsEditing = false;
}
void MyListPreviewMouseDoubleClick(object sender, MouseButtonEventArgs e)

4
src/AddIns/Debugger/Debugger.AddIn/Pads/Controls/WatchListAutoCompleteCell.cs

@ -121,9 +121,9 @@ namespace Debugger.AddIn.Pads.Controls @@ -121,9 +121,9 @@ namespace Debugger.AddIn.Pads.Controls
// FIXME workaround the NRefactory issue that needs a ; at the end
if (language == "C#" || language == "CSharp") {
if(!command.EndsWith(";"))
if (!command.EndsWith(";"))
command += ";";
// FIXME only one string should be available; highlighting expects C#, supproted language, CSharp
// FIXME only one string should be available; highlighting expects C#, supported language, CSharp
language = "CSharp";
}

Loading…
Cancel
Save