[TD]fix potential nullptr while restoring

This commit is contained in:
wandererfan
2019-12-29 22:42:13 -05:00
committed by WandererFan
parent ecfcc30fee
commit 6886621008
4 changed files with 18 additions and 1 deletions

View File

@@ -501,6 +501,9 @@ void QGIViewBalloon::draw_modifier(bool modifier)
show();
const TechDraw::DrawViewPart *refObj = balloon->getViewPart();
if (refObj == nullptr) {
return;
}
if(!refObj->hasGeometry()) { //nothing to draw yet (restoring)
balloonLabel->hide();
hide();