Extensions: Revert few changes after restructuring

This commit is contained in:
Stefan Tröger
2016-09-21 18:47:04 +02:00
committed by wmayer
parent 2978ead384
commit 2420559431
10 changed files with 25 additions and 48 deletions

View File

@@ -89,9 +89,8 @@ std::string PropertyFileIncluded::getDocTransientPath(void) const
{
std::string path;
PropertyContainer *co = getContainer();
auto obj = dynamic_cast<DocumentObject*>(co);
if (obj) {
path = obj->getDocument()->TransientDir.getValue();
if (co->isDerivedFrom(DocumentObject::getClassTypeId())) {
path = static_cast<DocumentObject*>(co)->getDocument()->TransientDir.getValue();
std::replace(path.begin(), path.end(), '\\', '/');
}
return path;