[Libreoffice-commits] core.git: scripting/java

Douglas Mencken dougmencken at gmail.com
Mon Mar 14 09:09:02 UTC 2016


 scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 60286229fa54b71c67a5d25a7cce59e54b6b8680
Author: Douglas Mencken <dougmencken at gmail.com>
Date:   Mon Feb 29 01:43:36 2016 -0500

    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/23164
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: jan iversen <jani at documentfoundation.org>

diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
index e7d71d3..ec2a56d 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
@@ -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(){


More information about the Libreoffice-commits mailing list