Merge remote-tracking branch 'origin/release-1.6.4' into main

# Conflicts:
#	CHANGELOG.md
This commit is contained in:
Karl Tauber
2021-11-16 15:52:15 +01:00
4 changed files with 13 additions and 6 deletions

View File

@@ -591,11 +591,8 @@ public class FlatComboBoxUI
// make renderer component temporary non-opaque to avoid that renderer paints
// background outside of border if combobox uses larger arc for edges
// (e.g. FlatClientProperties.COMPONENT_ROUND_RECT is true)
boolean oldOpaque = true;
if( c instanceof JComponent ) {
oldOpaque = ((JComponent)c).isOpaque();
if( c instanceof JComponent )
((JComponent)c).setOpaque( false );
}
boolean shouldValidate = (c instanceof JPanel);
@@ -604,7 +601,7 @@ public class FlatComboBoxUI
paddingBorder.uninstall();
if( c instanceof JComponent )
((JComponent)c).setOpaque( oldOpaque );
((JComponent)c).setOpaque( true );
}
@Override