From fb1ec69f3f8d37d39c3bc893dfc4cf395c1a64d1 Mon Sep 17 00:00:00 2001 From: sgalland Date: Tue, 4 Jun 2013 14:48:51 +0200 Subject: [PATCH] * Reuse the local variables instead of calling the same function a second time. --- .../arakhne/neteditor/fig/figure/decoration/TextFigure.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neteditor-fig/src/main/java/org/arakhne/neteditor/fig/figure/decoration/TextFigure.java b/neteditor-fig/src/main/java/org/arakhne/neteditor/fig/figure/decoration/TextFigure.java index 14caf76..c6e0de0 100644 --- a/neteditor-fig/src/main/java/org/arakhne/neteditor/fig/figure/decoration/TextFigure.java +++ b/neteditor-fig/src/main/java/org/arakhne/neteditor/fig/figure/decoration/TextFigure.java @@ -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()); } }