Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP-24957: Bug when mouse over a changing graph #142

Open
fubar-coder opened this issue Jun 11, 2018 · 0 comments
Open

CP-24957: Bug when mouse over a changing graph #142

fubar-coder opened this issue Jun 11, 2018 · 0 comments

Comments

@fubar-coder
Copy link
Contributor

From unknown CodePlex user on Sunday, 08 December 2013 22:48:29

Hi,

This could also be reproduced even in the sample program. If there has been one graph loaded, and then load another one and hover the mouse cursor to any of the nodes to be replaced during the replacement animation, exception KeyNotFoundException will be thrown.

Here is the call stack:
at System.Collections.Generic.Dictionary2.get_Item(TKey key) at QuickGraph.BidirectionalGraph2.ContainsEdge(TEdge edge)
at GraphSharp.Controls.GraphLayout`3.HighlightTriggerEventHandler(Object sender, HighlightTriggeredEventArgs args)

It seems that the event handler try to highlight the edge when the edge is being deleted.

Suggest to add a try-catch handler to avoid the unnecessary exception.

Mars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant