Skip to content

Commit

Permalink
revert and a better fix for IDEA-136786
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsh committed Feb 20, 2015
1 parent 4901d76 commit ca120c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package com.intellij.openapi.editor.colors;

import com.intellij.util.ObjectUtils;

import java.util.HashMap;
import java.util.Map;

Expand All @@ -37,6 +39,6 @@ public enum EditorFontType {
}

public static EditorFontType getConsoleType(EditorFontType fontType) {
return ourConsoleTypes.get(fontType);
return ObjectUtils.chooseNotNull(ourConsoleTypes.get(fontType), fontType);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public JComponent getPreferredFocusableComponent() {
return getConsoleEditor().getContentComponent();
}

public void initComponents() {
private void initComponents() {
setupComponents();

myPanel.add(myHistoryViewer.getComponent());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,7 @@ public float getLineSpacing() {

@Override
public Font getFont(EditorFontType key) {
Font font = super.getFont(EditorFontType.getConsoleType(key));
if (font == null) {
return super.getFont(key);
}
return font;
return super.getFont(EditorFontType.getConsoleType(key));
}

@Override
Expand Down

0 comments on commit ca120c0

Please sign in to comment.