Skip to content

Commit

Permalink
* Reuse the local variables instead of calling the same function a se…
Browse files Browse the repository at this point in the history
…cond time.
  • Loading branch information
gallandarakhneorg committed Jun 4, 2013
1 parent 950f234 commit fb1ec69
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -176,9 +176,9 @@ public void paint(ViewGraphics2D g) {
boolean isFilled = isFilled();
String text = getDisplayableText();
if (isFramed || isFilled || (text!=null && !text.isEmpty())) {
g.setOutlineDrawn(isFramed());
g.setInteriorPainted(isFilled());
g.setInteriorText(getDisplayableText());
g.setOutlineDrawn(isFramed);
g.setInteriorPainted(isFilled);
g.setInteriorText(text);
g.draw(g.getCurrentViewComponentBounds());
}
}
Expand Down

0 comments on commit fb1ec69

Please sign in to comment.