changeset 12657:77b051227740

7148281: [macosx] JTabbedPane tabs with HTML text do not render correctly Reviewed-by: kizune
author alexsch
date Thu, 17 May 2012 14:27:11 +0400
parents 6028fff5b8f7
children 4eaff9680674
files jdk/src/macosx/classes/com/apple/laf/AquaTabbedPaneUI.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
         }