Skip to content

Commit

Permalink
Fix for the curve z-order
Browse files Browse the repository at this point in the history
  • Loading branch information
rita-gwen authored and brendanx67 committed Nov 3, 2022
1 parent 34055c0 commit f6d43fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pwiz_tools/Skyline/Controls/Graphs/AreaReplicateGraphPane.cs
Expand Up @@ -621,7 +621,7 @@ public override void UpdateGraph(bool selectionChanged)
barItem.Bar.Border.IsVisible = false;
barItem.Bar.Fill.Brush = GetBrushForNode(document.Settings, docNode, color);
barItem.Tag = new IdentityPath(identityPath, docNode.Id);
CurveList.Add(barItem);
CurveList.Add(barItem); // Add peak area bars
}
}
}
Expand Down Expand Up @@ -655,7 +655,7 @@ public override void UpdateGraph(bool selectionChanged)
Symbol = new Symbol() { Type = SymbolType.Diamond, Size = 5f, Fill = new Fill(Color.DimGray)}
};
dotpLine.Tag = selectedTreeNode.Path;
CurveList.Insert(0, dotpLine);
CurveList.Insert(0, dotpLine); // Add dotp graph line
ToolTip.TargetCurves.ClearAndAdd(dotpLine);
}
else
Expand All @@ -676,7 +676,7 @@ public override void UpdateGraph(bool selectionChanged)
Symbol = new Symbol() { Type = SymbolType.Diamond, Size = 9f, Fill = new Fill(Color.Red), Border = new Border(Color.Red, 1) }
};
cutoffHighlightLine.Label.IsVisible = false;
CurveList.Add(cutoffHighlightLine);
CurveList.Insert(1, cutoffHighlightLine); // Add below cutoff highlight markers
ToolTip.TargetCurves.Add(cutoffHighlightLine);


Expand All @@ -697,7 +697,7 @@ public override void UpdateGraph(bool selectionChanged)
Location = new Location(0, cutoff, CoordType.XChartFractionY2Scale){Rect = new RectangleF(0, cutoff, 1, 0)},
Line = new LineBase(Color.Red)
};
GraphObjList.Add(cutoffLine);
GraphObjList.Add(cutoffLine); // Add cutoff line
//This is a placeholder to make sure the line shows in the legend.
CurveList.Insert(0, new LineItem(string.Format(CultureInfo.CurrentCulture,
Resources.AreaReplicateGraphPane_Dotp_Cutoff_Line_Label, DotpLabelText, cutoff))
Expand Down

0 comments on commit f6d43fa

Please sign in to comment.