diff --git a/fireplace-swing/src/main/java/com/github/bric3/fireplace/flamegraph/FlameGraphPainter.java b/fireplace-swing/src/main/java/com/github/bric3/fireplace/flamegraph/FlameGraphPainter.java index dc6fede1..a88af81d 100644 --- a/fireplace-swing/src/main/java/com/github/bric3/fireplace/flamegraph/FlameGraphPainter.java +++ b/fireplace-swing/src/main/java/com/github/bric3/fireplace/flamegraph/FlameGraphPainter.java @@ -206,8 +206,8 @@ private void paint(Graphics2D g2, Rectangle visibleRect, boolean minimapMode) { false, selectedFrame != null && ( frame.stackDepth < selectedFrame.stackDepth - || frame.endX < selectedFrame.startX - || frame.startX > selectedFrame.endX), + || frame.endX <= selectedFrame.startX + || frame.startX >= selectedFrame.endX), minimapMode), frameBorderColor, minimapMode);