Skip to content

Commit

Permalink
Fix #58 ProjectionGroupItem positioning after restore
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Jul 12, 2016
1 parent 1a87644 commit 3c2222b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Mod/TechDraw/App/DrawView.cpp
Expand Up @@ -70,10 +70,12 @@ DrawView::DrawView(void)
ScaleType.setEnums(ScaleTypeEnums);
ADD_PROPERTY_TYPE(ScaleType,((long)0),group, App::Prop_None, "Scale Type");
ADD_PROPERTY_TYPE(Scale ,(1.0),group,App::Prop_None,"Scale factor of the view");
//Scale.setStatus(App::Property::ReadOnly,true);

autoPos = true;

if (isRestoring()) {
autoPos = false;
} else {
autoPos = true;
}
}

DrawView::~DrawView()
Expand Down Expand Up @@ -126,8 +128,6 @@ void DrawView::onChanged(const App::Property* prop)
Scale.setStatus(App::Property::ReadOnly,true);
App::GetApplication().signalChangePropertyEditor(Scale);
} else if ( ScaleType.isValue("Custom") ) {
// } else if (ScaleType.isValue("Custom") &&
// Scale.testStatus(App::Property::ReadOnly)) {
Scale.setStatus(App::Property::ReadOnly,false);
App::GetApplication().signalChangePropertyEditor(Scale);
}
Expand Down

0 comments on commit 3c2222b

Please sign in to comment.