mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Octave Interface: Fixed wrong timestep array detection
The test to check whether an argument was a array of timestep indices was not good enough. Text was also interpreted as a matrix. Typechecking of the arguments is difficult due to the lack of documentation of the octave API
This commit is contained in:
committed by
JacobStoren
parent
05ae735519
commit
a7ba7c793c
@@ -168,8 +168,8 @@ DEFUN_DLD (riGetActiveCellProperty, args, nargout,
|
||||
}
|
||||
|
||||
// Check if we have a Requested TimeSteps
|
||||
|
||||
if (!(nargin > argIndices[2] && args(argIndices[2]).is_matrix_type()))
|
||||
|
||||
if (!(nargin > argIndices[2] && args(argIndices[2]).is_matrix_type() && !args(argIndices[2]).is_string()))
|
||||
{
|
||||
argIndices[2] = -1;
|
||||
for (size_t aIdx = 3; aIdx < argIndices.size(); ++aIdx)
|
||||
|
||||
Reference in New Issue
Block a user