diff --git a/designer_form/src/com/fr/design/widget/ui/designer/FreeButtonDefinePane.java b/designer_form/src/com/fr/design/widget/ui/designer/FreeButtonDefinePane.java index 1c4ef03a0..6dd4e4f2c 100644 --- a/designer_form/src/com/fr/design/widget/ui/designer/FreeButtonDefinePane.java +++ b/designer_form/src/com/fr/design/widget/ui/designer/FreeButtonDefinePane.java @@ -46,9 +46,7 @@ public class FreeButtonDefinePane extends ButtonDefinePane { FreeButton freeButton = (FreeButton) creator.toData(); backgroundCompPane.update(freeButton); FRFont frFont = freeButton.getFont(); - if(frFont != null){ - frFontPane.update(frFont); - } + freeButton.setFont(frFontPane.update(frFont)); return freeButton; } }