neilcsmith-net commented on code in PR #4286:
URL: https://github.com/apache/netbeans/pull/4286#discussion_r908756388


##########
platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/ui/FlatViewTabDisplayerUI.java:
##########
@@ -232,7 +232,9 @@ private void paintTabBackgroundAtScale1x(Graphics2D g, int 
index, int width, int
             g.fillRect(0, height - contentBorderWidth, width, 
contentBorderWidth);
         }
 
-        if (showTabSeparators && index >= 0) {
+        if (showTabSeparators && index >= 0 &&
+                ((!isSelected(index) && !isSelected(index + 1)
+                || selectedBackground.equals(activeBackground)))) {

Review Comment:
   Underlying code supports out of range values.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to