diff options
Diffstat (limited to 'src/cuchaz/enigma/gui/BoxHighlightPainter.java')
| -rw-r--r-- | src/cuchaz/enigma/gui/BoxHighlightPainter.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cuchaz/enigma/gui/BoxHighlightPainter.java b/src/cuchaz/enigma/gui/BoxHighlightPainter.java index 30b2b02..df63f5a 100644 --- a/src/cuchaz/enigma/gui/BoxHighlightPainter.java +++ b/src/cuchaz/enigma/gui/BoxHighlightPainter.java | |||
| @@ -36,8 +36,11 @@ public abstract class BoxHighlightPainter implements Highlighter.HighlightPainte | |||
| 36 | Rectangle bounds = getBounds( text, start, end ); | 36 | Rectangle bounds = getBounds( text, start, end ); |
| 37 | 37 | ||
| 38 | // fill the area | 38 | // fill the area |
| 39 | g.setColor( m_fillColor ); | 39 | if( m_fillColor != null ) |
| 40 | g.fillRoundRect( bounds.x, bounds.y, bounds.width, bounds.height, 4, 4 ); | 40 | { |
| 41 | g.setColor( m_fillColor ); | ||
| 42 | g.fillRoundRect( bounds.x, bounds.y, bounds.width, bounds.height, 4, 4 ); | ||
| 43 | } | ||
| 41 | 44 | ||
| 42 | // draw a box around the area | 45 | // draw a box around the area |
| 43 | g.setColor( m_borderColor ); | 46 | g.setColor( m_borderColor ); |