mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
rollback: NPE in painting
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -76,7 +76,7 @@ public class ComboBox extends ComboBoxWithWidePopup implements AWTEventListener
|
||||
arrowButton.addMouseListener(new MouseAdapter() {
|
||||
@Override
|
||||
public void mousePressed(MouseEvent e) {
|
||||
if (!isSwingPopup()) {
|
||||
if (!mySwingPopup) {
|
||||
e.consume();
|
||||
setPopupVisible(true);
|
||||
}
|
||||
@@ -115,9 +115,6 @@ public class ComboBox extends ComboBoxWithWidePopup implements AWTEventListener
|
||||
}
|
||||
});
|
||||
}
|
||||
else if (!visible) {
|
||||
super.setPopupVisible(visible);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user