BF 3142998 - CButton.setToolTipText(null) change button text and size

This commit is contained in:
genied 2011-03-26 00:37:14 -05:00
parent fb189f010c
commit 278febbefb
1 changed files with 2 additions and 1 deletions

View File

@ -276,7 +276,8 @@ public class CButton extends JButton implements CEditor {
*/ */
public void setToolTipText(String text) { public void setToolTipText(String text) {
if (text == null) { if (text == null) {
super.setText(text); //super.setText(text); Angelo Dabala' (genied) fixed, was calling the wrong method
super.setToolTipText(text);
return; return;
} }
int pos = text.indexOf('&'); int pos = text.indexOf('&');