~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/graphics/src/c/getHandleProperty/set_z_bounds_property.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
int set_z_bounds_property(void* _pvCtx, char* pobjUID, size_t stackPointer, int valueType, int nbRow, int nbCol )
35
35
{
36
36
    BOOL status = FALSE;
37
 
    double * values = getDoubleMatrixFromStack( stackPointer );
 
37
    double * values = stk( stackPointer );
38
38
 
39
 
    if ( !isParameterDoubleMatrix( valueType ) )
 
39
    if ( !( valueType == sci_matrix ) )
40
40
    {
41
41
        Scierror(999, _("Wrong type for '%s' property: Real matrix expected.\n"), "z_bounds");
42
42
        return SET_PROPERTY_ERROR;
56
56
    }
57
57
    else
58
58
    {
59
 
        Scierror(999, _("'%s' property does not exist for this handle.\n"),"z_bounds");
 
59
        Scierror(999, _("'%s' property does not exist for this handle.\n"), "z_bounds");
60
60
        return SET_PROPERTY_ERROR;
61
61
    }
62
62
}