Changeset 6647 for branches/GP.Grammar.Editor/HeuristicLab.Optimization.Views/3.3/ExperimentTreeView.cs
- Timestamp:
- 08/09/11 11:01:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Optimization.Views/3.3/ExperimentTreeView.cs
r6618 r6647 576 576 private void treeView_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { 577 577 if (rightClickOccured) return; 578 if (e.X < e.Node.Bounds.Left || e.X > e.Node.Bounds.Right) return;578 if (e.X < e.Node.Bounds.Left - treeView.ImageList.Images[e.Node.ImageIndex].Width || e.X > e.Node.Bounds.Right) return; 579 579 e.Node.Toggle(); 580 580 IContent optimizer = (IContent)e.Node.Tag; … … 582 582 } 583 583 private void treeview_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { 584 if (e.X < e.Node.Bounds.Left || e.X > e.Node.Bounds.Right) return;584 if (e.X < e.Node.Bounds.Left - treeView.ImageList.Images[e.Node.ImageIndex].Width || e.X > e.Node.Bounds.Right) return; 585 585 treeView.SelectedNode = e.Node; 586 586 detailsViewHost.Content = (IContent)e.Node.Tag; … … 593 593 Point coordinates = new Point(e.X, e.Y); 594 594 TreeNode node = treeView.GetNodeAt(coordinates); 595 if (node == null || coordinates.X < node.Bounds.Left || coordinates.X > node.Bounds.Right) {595 if (node == null || coordinates.X < node.Bounds.Left - treeView.ImageList.Images[node.ImageIndex].Width || coordinates.X > node.Bounds.Right) { 596 596 treeView.SelectedNode = null; 597 597 detailsViewHost.Content = null; … … 723 723 algorithm.Problem = problem; 724 724 } 725 } 726 catch (Exception ex) { 725 } catch (Exception ex) { 727 726 ErrorHandling.ShowErrorDialog(this, ex); 728 727 }
Note: See TracChangeset
for help on using the changeset viewer.