Kaydet (Commit) 60286229 authored tarafından Douglas Mencken's avatar Douglas Mencken Kaydeden (comit) jan iversen

scripting: JDK 1.5 compatibility: don't use java.awt.Font.MONOSPACED

MONOSPACED is defined in java/awt/Font.java as
/* @since 1.6 */ static final String  MONOSPACED = "Monospaced";

Change-Id: I31847c939387c139971ff55f786773c7ce51448c
Reviewed-on: https://gerrit.libreoffice.org/23164Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarjan iversen <jani@documentfoundation.org>
üst 894a858f
......@@ -137,7 +137,7 @@ public class PlainSourceView extends JScrollPane implements
ta.setColumns(40);
ta.setLineWrap(false);
ta.insert(model.getText(), 0);
ta.setFont(new Font(Font.MONOSPACED, ta.getFont().getStyle(), ta.getFont().getSize()));
ta.setFont(new Font("Monospaced", ta.getFont().getStyle(), ta.getFont().getSize()));
undoManager = new UndoManager();
undoManager.setLimit(noLimit);
ta.getDocument().addUndoableEditListener(new UndoableEditListener(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment