Correct a bug in the creation of the Get hastable.
[scilab.git] / scilab / modules / graphics / src / c / getHandleProperty / set_color_map_property.c
1 /*------------------------------------------------------------------------*/
2 /* file: set_color_map_property.c                                         */
3 /* Copyright INRIA 2006                                                   */
4 /* Authors : Fabrice Leray, Allan Cornet, Jean-Baptiste Silvy             */
5 /* desc : function to modify in Scilab the color_map field of             */
6 /*        a handle                                                        */
7 /*------------------------------------------------------------------------*/
8
9 #include "setHandleProperty.h"
10 #include "SetProperty.h"
11 #include "getPropertyAssignedValue.h"
12
13 /*------------------------------------------------------------------------*/
14 int set_color_map_property( sciPointObj * pobj, int stackPointer, int nbRow, int nbCol )
15 {
16   return sciSetColormap( pobj, getDoubleMatrixFromStack( stackPointer), nbRow, nbCol ) ;
17 }
18 /*------------------------------------------------------------------------*/