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

Merge pull request #571 in G/fastr from...

Merge pull request #571 in G/fastr from ~LUKAS.STADLER_ORACLE.COM/fastr:bugfix/attr_in_specials to master

* commit '08375d00':
  use attribute node in SpecialsUtils
parents 7154e299 08375d00
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