Skip to content

Commit

Permalink
fix regression caused by commit 5e42d48
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 13, 2019
1 parent 86930ef commit b17bda5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/App/Document.cpp
Expand Up @@ -3537,9 +3537,10 @@ DocumentObject * Document::addObject(const char* sType, const char* pObjectName,

pcObject->setStatus(ObjectStatus::PartialObject, isPartial);

if(!viewType)
if (!viewType || viewType[0] == '\0')
viewType = pcObject->getViewProviderNameOverride();
if(viewType)

if (viewType && viewType[0] != '\0')
pcObject->_pcViewProviderName = viewType;

signalNewObject(*pcObject);
Expand Down

0 comments on commit b17bda5

Please sign in to comment.