Fix crash in DrawViewDraft/DrawViewArch

- when restoring DVD/DVA from old files, convert Source from
  PropertyLinkGlobal to PropertyLink with Scope = Global. Note
  subtle difference from Restore method in DrawView - PropertyLink
  vs PropertyLinkList.
This commit is contained in:
WandererFan
2018-01-03 21:26:25 -05:00
committed by Yorik van Havre
parent 41b71ee3a9
commit d1e83f1075
4 changed files with 144 additions and 2 deletions

View File

@@ -61,6 +61,8 @@ public:
virtual const char* getViewProviderName(void) const {
return "TechDrawGui::ViewProviderDraft";
}
void Restore(Base::XMLReader &reader) override;
protected:
virtual void onChanged(const App::Property* prop);