X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=blobdiff_plain;f=scilab%2Fmodules%2Fui_data%2Fsrc%2Fcpp%2FBrowseVarManager.cpp;h=26b22d15af6e4323349d246929c625db9e2c875c;hp=ab76fef4491773c944f19e169cbfb09691592798;hb=ea7af6ac223dc09919c3055c9dce31b53836cfa9;hpb=d7d4eed7da3d93b40734757b2721e859743fb0e1 diff --git a/scilab/modules/ui_data/src/cpp/BrowseVarManager.cpp b/scilab/modules/ui_data/src/cpp/BrowseVarManager.cpp index ab76fef..26b22d1 100644 --- a/scilab/modules/ui_data/src/cpp/BrowseVarManager.cpp +++ b/scilab/modules/ui_data/src/cpp/BrowseVarManager.cpp @@ -147,6 +147,7 @@ void SetBrowseVarData() err = getVarType(NULL, (int*)pIT, &piAllVariableTypes[i]); if (!err.iErr) { + piAllVariableBytes[i] = 0; err = getVarDimension(NULL, (int*)pIT, &nbRows, &nbCols); } @@ -217,10 +218,7 @@ void SetBrowseVarData() { piAllVariableFromUser[i] = FALSE; } - - int bytesWithoutOverHead; - pIT->getMemory(&bytesWithoutOverHead, &piAllVariableBytes[i]); - + ++i; } @@ -243,16 +241,14 @@ void SetBrowseVarData() } //type piAllVariableTypes[i] = sci_lib; + + piAllVariableBytes[i] = 0; pstAllVariableSizes[i] = os_strdup(N_A); piAllVariableIntegerTypes[i] = -1; pstAllVariableListTypes[i] = os_strdup(""); piAllVariableFromUser[i] = FALSE; piAllVariableNbRows[i] = 1; piAllVariableNbCols[i] = 1; - //get value and bytes - types::GenericType* pIT = sl->m_pLib; - int bytesWithoutOverHead; - pIT->getMemory(&bytesWithoutOverHead, &piAllVariableBytes[i]); ++i; }