* [#12198](http://bugzilla.scilab.org/show_bug.cgi?id=12198): Scilab control and block keywords `break case ... try while` and `clear()` could be overloaded as regular assignable variables.
* [#12275](http://bugzilla.scilab.org/show_bug.cgi?id=12275): `msprintf("%s",ascii(97*ones(1,4097)))` produced "An error occurred: Buffer too small."
* [#12402](http://bugzilla.scilab.org/show_bug.cgi?id=12402): The menu `Applications => Scinotes` could launch the external editor instead of Scinotes.
-* [#12520](http://bugzilla.scilab.org/show_bug.cgi?id=12520): Variable browser did not display the size of the variables.
* [#12529](http://bugzilla.scilab.org/show_bug.cgi?id=12529): The `listvarinfile` help page needed to be updated.
-* [#12534](http://bugzilla.scilab.org/show_bug.cgi?id=12534): Variable browser did not display the size of the variables.
* [#12566](http://bugzilla.scilab.org/show_bug.cgi?id=12566): `disp()` of a T-list with a single field set to an encoded integer value generated an error.
* [#12618](http://bugzilla.scilab.org/show_bug.cgi?id=12618): `mfile2sci()` failed converting `a=1i // ab` into `a=1*%i // ab`.
* [#12659](http://bugzilla.scilab.org/show_bug.cgi?id=12659): Crash on big modulo.
err = getVarType(NULL, (int*)pIT, &piAllVariableTypes[i]);
if (!err.iErr)
{
+ piAllVariableBytes[i] = 0;
err = getVarDimension(NULL, (int*)pIT, &nbRows, &nbCols);
}
{
piAllVariableFromUser[i] = FALSE;
}
-
- int bytesWithoutOverHead;
- pIT->getMemory(&bytesWithoutOverHead, &piAllVariableBytes[i]);
-
+
++i;
}
}
//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;
}
} catch (IllegalArgumentException exception) {
/* If the type is not known/managed, don't crash */
}
- }
+ } else {
+
+ if (colIndex == BrowseVar.SIZE_COLUMN_INDEX) {
+ /* Use the getModel() method because the
+ * column 5 has been removed from display
+ * but still exist in the model */
+ tip = Messages.gettext("Bytes:") + " " + model.getValueAt(rowIndex, BrowseVar.BYTES_COLUMN_INDEX).toString();
+ }
+ }
}
return tip;
}
table.removeColumn(column);
column = table.getColumnModel().getColumn(BrowseVar.BYTES_COLUMN_INDEX);
- //table.removeColumn(column);
+ table.removeColumn(column);
table.addMouseListener(new BrowseVarMouseListener());
// Mouse selection mode