diff --git a/src/src/Rendering/Measure/OpenPolyAnnotationActor.cpp b/src/src/Rendering/Measure/OpenPolyAnnotationActor.cpp index 11ff37b..7533e35 100644 --- a/src/src/Rendering/Measure/OpenPolyAnnotationActor.cpp +++ b/src/src/Rendering/Measure/OpenPolyAnnotationActor.cpp @@ -176,6 +176,7 @@ void OpenPolyAnnotationActor::UpdatePerimeterAndAreaText() { if (text) { + if (renderPoints->GetNumberOfPoints()<1) return; double *rp = renderPoints->GetPoint(0); text->SetDisplayPosition(rp[0] + 10, rp[1] - 20); double distance = 0.0;