Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
FEM Post: Fix property unit test
  • Loading branch information
ickby authored and wwmayer committed Jun 15, 2016
1 parent 2fb14ce commit dcf2da7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Mod/Fem/App/PropertyPostDataObject.cpp
Expand Up @@ -186,6 +186,9 @@ void PropertyPostDataObject::getPaths(std::vector<App::ObjectIdentifier> &paths)
void PropertyPostDataObject::Save (Base::Writer &writer) const
{
std::string extension;
if(!m_dataObject)
return;

switch( m_dataObject->GetDataObjectType() ) {

case VTK_POLY_DATA:
Expand Down Expand Up @@ -228,6 +231,9 @@ void PropertyPostDataObject::Save (Base::Writer &writer) const
void PropertyPostDataObject::Restore(Base::XMLReader &reader)
{
reader.readElement("Data");
if(!reader.hasAttribute("file"))
return;

std::string file (reader.getAttribute("file") );

if (!file.empty()) {
Expand Down

0 comments on commit dcf2da7

Please sign in to comment.