+ fixes #0002029: VRML inline ignored

This commit is contained in:
wmayer
2015-03-29 23:35:39 +02:00
parent 2adc56cb14
commit 146b4ed2d7
4 changed files with 92 additions and 36 deletions

View File

@@ -113,12 +113,20 @@ std::string PropertyFileIncluded::getExchangeTempFile(void) const
(getValue()).fileName().c_str(), getDocTransientPath().c_str());
}
std::string PropertyFileIncluded::getOriginalFileName(void) const
{
return _OriginalName;
}
void PropertyFileIncluded::setValue(const char* sFile, const char* sName)
{
if (sFile && sFile[0] != '\0') {
if (_cValue == sFile)
throw Base::Exception("Not possible to set the same file!");
// keep the path to the original file
_OriginalName = sFile;
std::string pathTrans = getDocTransientPath();
Base::FileInfo file(sFile);
std::string path = file.dirPath();