Fix #58 ProjectionGroupItem positioning after restore

This commit is contained in:
WandererFan 2016-07-12 15:33:02 -04:00
parent 1a87644f44
commit 3c2222ba60

View File

@ -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()
@ -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);
}