fix: fix polygon double click CtrlPoint crash bug
This commit is contained in:
@@ -176,6 +176,7 @@ void OpenPolyAnnotationActor::UpdatePerimeterAndAreaText()
|
|||||||
{
|
{
|
||||||
if (text)
|
if (text)
|
||||||
{
|
{
|
||||||
|
if (renderPoints->GetNumberOfPoints()<1) return;
|
||||||
double *rp = renderPoints->GetPoint(0);
|
double *rp = renderPoints->GetPoint(0);
|
||||||
text->SetDisplayPosition(rp[0] + 10, rp[1] - 20);
|
text->SetDisplayPosition(rp[0] + 10, rp[1] - 20);
|
||||||
double distance = 0.0;
|
double distance = 0.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user