Coverity: Unchecked dynamic_cast

This commit is contained in:
wmayer
2020-07-20 12:37:08 +02:00
parent 2453a50aba
commit a9202f931b
6 changed files with 14 additions and 5 deletions

View File

@@ -293,6 +293,9 @@ void QGILeaderLine::startPathEdit(void)
{
saveState();
auto featLeader( dynamic_cast<TechDraw::DrawLeaderLine*>(getViewObject()) );
if (featLeader == nullptr) {
return;
}
double scale = featLeader->getScale();
m_editPath->setScale(scale);