[TD]crash loading old development models
- LeaderLine behaviour changed during development
This commit is contained in:
@@ -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;
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user