Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / XGUI / XGUI_PartDataModel.cpp
index 521e193c21e966ab5ff64ba9049d996fe981535f..82f8c132bb298b478dc280e8bb1ceb77bf40a016 100644 (file)
@@ -390,7 +390,7 @@ DocumentPtr XGUI_PartDataModel::partDocument() const
 {
   DocumentPtr aRootDoc = ModelAPI_PluginManager::get()->rootDocument();
   ObjectPtr aObject = aRootDoc->object(ModelAPI_ResultPart::group(), myId);
-  return aObject->data()->docRef("PartDocument")->value();
+  return aObject->document();
 }
  
 ObjectPtr XGUI_PartDataModel::object(const QModelIndex& theIndex) const