[TD]fix potential nullptr while restoring
This commit is contained in:
@@ -675,6 +675,9 @@ void QGIViewDimension::draw()
|
||||
}
|
||||
|
||||
const TechDraw::DrawViewPart *refObj = dim->getViewPart();
|
||||
if (refObj == nullptr) {
|
||||
return;
|
||||
}
|
||||
if(!refObj->hasGeometry()) { //nothing to draw yet (restoring)
|
||||
datumLabel->hide();
|
||||
hide();
|
||||
|
||||
Reference in New Issue
Block a user