Commits

Aleš Erjavec  committed 1c9c5bd

Check for negative index values.

  • Participants
  • Parent commits efdd815

Comments (0)

Files changed (1)

File source/orange/vars.cpp

     str += ")";
   }
 
-  str = val.intV<int(values->size()) ? values->operator[](val.intV) : "#RNGE";
+  if (val.intV < values->size() && val.intV >= 0) {
+    str = values->operator[](val.intV);
+  } else {
+    str = "#RNGE";
+  }
 }