Extensions: Fix rebase errors

This commit is contained in:
Stefan Tröger
2016-08-25 17:50:31 +02:00
committed by wmayer
parent 594bb4fecd
commit 1287f3007a
7 changed files with 36 additions and 28 deletions

View File

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