Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pwiz_tools/Shared/zedgraph/ZedGraph/GraphObjList.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//============================================================================
//ZedGraph Class Library - A Flexible Line Graph/Bar Graph Library in C#
//Copyright � 2004 John Champion
//Copyright � 2004 John Champion
//
//This library is free software; you can redistribute it and/or
//modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -289,7 +289,9 @@ public bool FindPoint( PointF mousePt, PaneBase pane, Graphics g, float scaleFac
// the same ZOrder value.
for ( int i=0; i<Count; i++ )
{
if ( this[i].PointInBox( mousePt, pane, g, scaleFactor ) )
// Skip hidden objects so an invisible object (e.g. a sampled-out or pruned
// label left in the list) cannot screen a visible one during hit-testing.
if ( this[i].IsVisible && this[i].PointInBox( mousePt, pane, g, scaleFactor ) )
{
if ( ( index >= 0 && this[i].ZOrder > this[index].ZOrder ) || index < 0 )
index = i;
Expand Down
Loading