View does not appear on Redo

Crash in Page on Redo View
This commit is contained in:
WandererFan
2016-07-04 20:15:02 -04:00
committed by wmayer
parent fb397e0f8b
commit 449cbbd5bd
6 changed files with 29 additions and 4 deletions

View File

@@ -123,8 +123,12 @@ void QGIViewPart::tidy()
void QGIViewPart::setViewPartFeature(TechDraw::DrawViewPart *obj)
{
if (!obj)
return;
// called from QGVPage
setViewFeature(static_cast<TechDraw::DrawView *>(obj));
draw();
}
QPainterPath QGIViewPart::drawPainterPath(TechDrawGeometry::BaseGeom *baseGeom) const
@@ -280,6 +284,8 @@ void QGIViewPart::updateView(bool update)
}
}
draw();
} else {
QGIView::draw();
}
}