* Bug #11711 fixed - xclick and xgetmouse did not work under Mac OS X.
+* Bug #11778 fixed - Bad color_map dims did not return an error.
+
* Bug #11801 fixed - Bug with isoview="on" on subplots.
* Bug #11811 fixed - Fix a typo in the help page of Scinotes.
return SET_PROPERTY_ERROR ;
}
+ if (nbCol != 3)
+ {
+ Scierror(999, _("Wrong dimension for '%s' property: The number of columns must be 3.\n"), "color_map");
+ return SET_PROPERTY_ERROR ;
+ }
+
status = setGraphicObjectProperty(pobjUID, __GO_COLORMAP__, stk(stackPointer), jni_double_vector, nbRow * nbCol);
if (status == TRUE)
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - Scilab Enterprises - Sylvestre Ledru
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- TEST WITH GRAPHIC -->
+// <-- Non-regression test for bug 11778 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=11778
+//
+// <-- Short Description -->
+// gcf().color_map=1 should return an error since a matrix nx3 is expected (it was the case in 5.3.3)
+a=gcf();
+assert_checkerror("a=gca();a.color_map=1",[],999);
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - Scilab Enterprises - Sylvestre Ledru
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- TEST WITH GRAPHIC -->
+
+// <-- Non-regression test for bug 11778 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=11778
+//
+// <-- Short Description -->
+// gcf().color_map=1 should return an error since a matrix nx3 is expected (it was the case in 5.3.3)
+
+a=gcf();
+assert_checkerror("a=gca();a.color_map=1",[],999);