return 1;
}
if (stricmp(pstProName, "dockable") != 0
- && stricmp(pstProName, "toolbar") != 0
- && stricmp(pstProName, "menubar") != 0
- && stricmp(pstProName, "default_axes") != 0
- && stricmp(pstProName, "visible") != 0 )
+ && stricmp(pstProName, "toolbar") != 0
+ && stricmp(pstProName, "menubar") != 0
+ && stricmp(pstProName, "default_axes") != 0
+ && stricmp(pstProName, "visible") != 0 )
{
freeAllocatedSingleString(pstProName);
continue;
_pvData = (void*)piAddrData; /* In this case l3 is the list position in stack */
break;
}
+ }
- callSetProperty(pvApiCtx, iFig, _pvData, iType, iRows, iCols, pstProName);
- if (iType == sci_strings)
+ callSetProperty(pvApiCtx, iFig, _pvData, iType, iRows, iCols, pstProName);
+ if (iType == sci_strings)
+ {
+ //free allacted data
+ if (isMatrixOfString == 1)
{
- //free allacted data
- if (isMatrixOfString == 1)
- {
- freeAllocatedMatrixOfString(iRows, iCols, (char**)_pvData);
- }
- else
- {
- freeAllocatedSingleString((char*)_pvData);
- }
+ freeAllocatedMatrixOfString(iRows, iCols, (char**)_pvData);
+ }
+ else
+ {
+ freeAllocatedSingleString((char*)_pvData);
}
}
}
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2014 - Scilab Enterprises - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- TEST WITH GRAPHIC -->
+//
+// <-- Non-regression test for bug 13222 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/13222
+//
+// <-- Short Description -->
+// ATOMS GUI is not showing any list module.
+// ==> Related to the fact that figure() does not set the userdata property
+f = figure("UserData", 13222);
+assert_checkequal(f.userdata, 13222);
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2014 - Scilab Enterprises - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- TEST WITH GRAPHIC -->
+//
+// <-- Non-regression test for bug 13222 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/13222
+//
+// <-- Short Description -->
+// ATOMS GUI is not showing any list module.
+// ==> Related to the fact that figure() does not set the userdata property
+
+f = figure("UserData", 13222);
+assert_checkequal(f.userdata, 13222);
\ No newline at end of file