Changeset 29588 in osm for applications/editors/josm/plugins/geochat/src/geochat/ChatPaneManager.java
- Timestamp:
- 2013-05-13T20:40:53+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/geochat/src/geochat/ChatPaneManager.java
r29584 r29588 10 10 import javax.swing.event.ChangeListener; 11 11 import javax.swing.text.*; 12 import org.openstreetmap.josm.Main; 12 13 import static org.openstreetmap.josm.tools.I18n.tr; 13 14 … … 134 135 chatPane.setEditable(false); 135 136 Font font = chatPane.getFont(); 136 float size = -1.0f; // Main.pref.getInteger("geochat.fontsize", -1); <- we don't need this 137 if( size < 8 ) 138 size += font.getSize2D(); 139 chatPane.setFont(font.deriveFont(size)); 137 float sizeParameter = Main.pref.getInteger("geochat.panel.fontsize", -1); 138 float size = sizeParameter; 139 if ( sizeParameter <= 0 ) size += font.getSize2D(); 140 chatPane.setFont(font.deriveFont( size )); 141 140 142 // DefaultCaret caret = (DefaultCaret)chatPane.getCaret(); // does not work 141 143 // caret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);
Note:
See TracChangeset
for help on using the changeset viewer.