Browse Source

Merge pull request #853 in BA/design from ~PLOUGH/design:dev to dev

* commit '4da0c31392e79f93176e17c5514afcbe166006fb':
  REPORT-1885 frm跑马灯=>默认字体由textPane确定,不写死
master
superman 8 years ago
parent
commit
43cc133efd
  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(){ 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.addItemListener(fontNameItemListener);
fontNameComboBox.setSelectedItem(defaultFont.getFontName()); fontNameComboBox.setSelectedItem(defaultFont.getFontName());
fontSizeComboBox.addItemListener(fontSizeItemListener); fontSizeComboBox.addItemListener(fontSizeItemListener);

Loading…
Cancel
Save