fix bug in case of empty rect
[scilab.git] / scilab / modules / graphic_objects / src / cpp / Triangulator.cpp
index ae43b34..f406c19 100644 (file)
@@ -792,7 +792,7 @@ int Triangulator::getNumberTriangles(void)
 
 int* Triangulator::getIndices(void)
 {
-    return &triangleIndices[0];
+    return triangleIndices.data();
 }
 
 int Triangulator::getNumberSteps(void)