Browse Source

REPORT-1885 frm跑马灯=>默认字体由textPane确定,不写死

master
plough 8 years ago
parent
commit
4da0c31392
  1. 2
      designer/src/com/fr/design/cell/editor/RichTextToolBar.java

2
designer/src/com/fr/design/cell/editor/RichTextToolBar.java

@ -134,7 +134,7 @@ public class RichTextToolBar extends BasicPane{
}
private void bindListener(){
FRFont defaultFont = RichTextPane.DEFAUL_FONT;
FRFont defaultFont = (this.textPane != null) ? FRFont.getInstance(this.textPane.getFont()) : RichTextPane.DEFAUL_FONT;
fontNameComboBox.addItemListener(fontNameItemListener);
fontNameComboBox.setSelectedItem(defaultFont.getFontName());
fontSizeComboBox.addItemListener(fontSizeItemListener);

Loading…
Cancel
Save