Skip to content

Commit

Permalink
[TD]crash loading old development models
Browse files Browse the repository at this point in the history
- LeaderLine behaviour changed during development
  • Loading branch information
WandererFan committed Apr 30, 2020
1 parent 52344f6 commit daa6330
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Mod/TechDraw/Gui/QGILeaderLine.cpp
Expand Up @@ -359,7 +359,12 @@ void QGILeaderLine::draw()
if ( vp == nullptr ) {
return;
}

double scale = 1.0;
TechDraw::DrawView* parent = featLeader->getBaseView();
if (parent != nullptr) {
scale = parent->getScale();
}

if (m_editPath->inEdit()) {
return;
Expand All @@ -373,7 +378,6 @@ void QGILeaderLine::draw()
}
m_lineStyle = (Qt::PenStyle) vp->LineStyle.getValue();

double scale = parent->getScale();
double baseScale = featLeader->getBaseScale();
double x = Rez::guiX(featLeader->X.getValue());
double y = - Rez::guiX(featLeader->Y.getValue());
Expand Down

0 comments on commit daa6330

Please sign in to comment.