7148281: [macosx] JTabbedPane tabs with HTML text do not render correctly
authoralexsch
Thu, 17 May 2012 14:27:11 +0400
changeset 12657 77b051227740
parent 12656 6028fff5b8f7
child 12658 4eaff9680674
7148281: [macosx] JTabbedPane tabs with HTML text do not render correctly Reviewed-by: kizune
jdk/src/macosx/classes/com/apple/laf/AquaTabbedPaneUI.java
--- a/jdk/src/macosx/classes/com/apple/laf/AquaTabbedPaneUI.java	Wed May 16 18:11:48 2012 +0400
+++ b/jdk/src/macosx/classes/com/apple/laf/AquaTabbedPaneUI.java	Thu May 17 14:27:11 2012 +0400
@@ -318,7 +318,7 @@
         }
 
         // not for the scrolling tabs
-        if (tabIndex >= 0) {
+        if (component == null && tabIndex >= 0) {
             paintTitle(g2d, font, metrics, textRect, tabIndex, title);
         }