fix xset(wdim,...) 19/16419/3
Anais AUBERT [Wed, 29 Apr 2015 12:57:22 +0000 (14:57 +0200)]
test_run("graphics","bug_711",["no_check_error_output" ]);

Change-Id: If3b25365e6ef228c3c8e7cb2a3ba40e22470ec9b

scilab/modules/graphics/sci_gateway/cpp/sci_xset.cpp

index f28c755..1f593e5 100644 (file)
@@ -513,7 +513,7 @@ types::Function::ReturnValue sci_xset(types::typed_list &in, int _iRetCount, typ
             getOrCreateDefaultSubwin();
 
             figurePosition[0] = (int)in[1]->getAs<types::Double>()->get(0);
-            figurePosition[1] = (int)in[2]->getAs<types::Double>()->get(0);
+            figurePosition[1] = (int)in[1]->getAs<types::Double>()->get(1);
             setGraphicObjectProperty(getCurrentFigure(), __GO_POSITION__, figurePosition, jni_int_vector, 2);
         }
         break;