Skip to content

Commit

Permalink
Fix: Preview not updated on font size change in text element dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Herzog committed Jul 1, 2024
1 parent 36a2381 commit 6d6e93d
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,13 @@ protected JComponent getContentPanel() {
sizeField=(JTextField)data[1];
sizeField.setEditable(!readOnly);
bottomPanel.add((JPanel)data[0]);
sizeField.addActionListener(e->{
if (readOnly) return;
NumberTools.getNotNegativeInteger(sizeField,true);
updatePreview();
sizeField.addKeyListener(new KeyAdapter() {
@Override
public void keyReleased(KeyEvent e) {
if (readOnly) return;
NumberTools.getNotNegativeInteger(sizeField,true);
updatePreview();
}
});

/* Fett/Kursiv */
Expand Down

0 comments on commit 6d6e93d

Please sign in to comment.