mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 15:27:16 -06:00
Linux: fixed NPE when using FlatLaf window decorations and switching theme (issue #933; regression in 3.5.3)
caused by fix for #907; commit d471f08b15
This commit is contained in:
@@ -272,7 +272,8 @@ public abstract class FlatWindowResizer
|
||||
public void doLayout() {
|
||||
super.doLayout();
|
||||
|
||||
centerComp.setBounds( 0, 0, resizeComp.getWidth(), resizeComp.getHeight() );
|
||||
if( centerComp != null && centerComp.isVisible() )
|
||||
centerComp.setBounds( 0, 0, resizeComp.getWidth(), resizeComp.getHeight() );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -376,6 +377,7 @@ public abstract class FlatWindowResizer
|
||||
|
||||
@Override
|
||||
protected void beginResizing( int resizeDir ) {
|
||||
centerComp.setBounds( 0, 0, resizeComp.getWidth(), resizeComp.getHeight() );
|
||||
centerComp.setCursor( getPredefinedCursor( resizeDir ) );
|
||||
centerComp.setVisible( true );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user