提交 c6bb5d42 编写于 作者: P peterz

6815767: Bad parameter when calling another method in the class SynthTabbedPaneUI

Reviewed-by: alexp, rupashka
上级 26b463b3
...@@ -233,7 +233,7 @@ class SynthTabbedPaneUI extends BasicTabbedPaneUI implements SynthUI, PropertyCh ...@@ -233,7 +233,7 @@ class SynthTabbedPaneUI extends BasicTabbedPaneUI implements SynthUI, PropertyCh
tabContext.getStyle().getGraphicsUtils(tabContext).layoutText( tabContext.getStyle().getGraphicsUtils(tabContext).layoutText(
tabContext, metrics, title, icon, SwingUtilities.CENTER, tabContext, metrics, title, icon, SwingUtilities.CENTER,
SwingUtilities.CENTER, SwingUtilities.LEADING, SwingUtilities.CENTER, SwingUtilities.LEADING,
SwingUtilities.TRAILING, calcRect, SwingUtilities.CENTER, calcRect,
iconRect, textRect, textIconGap); iconRect, textRect, textIconGap);
return textRect.y + metrics.getAscent() + getBaselineOffset(); return textRect.y + metrics.getAscent() + getBaselineOffset();
} }
...@@ -426,7 +426,7 @@ class SynthTabbedPaneUI extends BasicTabbedPaneUI implements SynthUI, PropertyCh ...@@ -426,7 +426,7 @@ class SynthTabbedPaneUI extends BasicTabbedPaneUI implements SynthUI, PropertyCh
ss.getStyle().getGraphicsUtils(ss).layoutText(ss, metrics, title, ss.getStyle().getGraphicsUtils(ss).layoutText(ss, metrics, title,
icon, SwingUtilities.CENTER, SwingUtilities.CENTER, icon, SwingUtilities.CENTER, SwingUtilities.CENTER,
SwingUtilities.LEADING, SwingUtilities.TRAILING, SwingUtilities.LEADING, SwingUtilities.CENTER,
tabRect, iconRect, textRect, textIconGap); tabRect, iconRect, textRect, textIconGap);
tabPane.putClientProperty("html", null); tabPane.putClientProperty("html", null);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册