Graphics: draw full plus (plot2d(1:10,1:10,-1)) 86/16286/1
Calixte DENIZET [Mon, 30 Mar 2015 13:27:02 +0000 (15:27 +0200)]
Change-Id: I7e0c27a8ce4af3cf4f48000a327bc89845c65402

scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/texture/BufferedImageTextureDrawingTools.java

index 3fa9f82..81eb74b 100644 (file)
@@ -83,9 +83,8 @@ public class BufferedImageTextureDrawingTools implements TextureDrawingTools {
     public void drawPlus(int size, Appearance appearance) {
         int r = size / 2;
         int[] coords1 = new int[] { -r, 0, r, 0};
-        if (r == 0) {
-            drawPolyline(coords1, appearance);
-        } else {
+        drawPolyline(coords1, appearance);
+        if (r != 0) {
             int[] coords2 = new int[] {0, -r, 0, r};
             drawPolyline(coords2, appearance);
         }