Skip to content
Snippets Groups Projects
Commit 08375d00 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

use attribute node in SpecialsUtils

parent 3ff79c88
No related branches found
No related tags found
No related merge requests found
......@@ -107,8 +107,8 @@ class SpecialsUtils {
/**
* Checks whether the given (1-based) indexes are valid for the given matrix.
*/
protected static boolean isValidIndex(RAbstractVector vector, int index1, int index2) {
int[] dimensions = vector.getDimensions();
protected boolean isValidIndex(RAbstractVector vector, int index1, int index2) {
int[] dimensions = getDimensions.getDimensions(vector);
return dimensions != null && dimensions.length == 2 && index1 >= 1 && index1 <= dimensions[0] && index2 >= 1 && index2 <= dimensions[1];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment