fix bug in case of empty rect 11/18911/3
Antoine ELIAS [Wed, 18 Jan 2017 17:31:06 +0000 (18:31 +0100)]
crash set of rectangles demo

Change-Id: Iac10b998b29f63a2ffc4ecd2fa22ade631ba9217

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)