Skip to content

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

Open
@fubar-coder

Description

@fubar-coder

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions