Caf: Improved reference parsing by using regexp for splitting an any whitespace

This commit is contained in:
Jacob Støren 2016-06-20 16:50:47 +02:00
parent 26191fd54d
commit eaf6bb6768

View File

@ -321,7 +321,7 @@ PdmObjectHandle* PdmReferenceHelper::objectFromFieldReference(PdmFieldHandle* fr
if (!fromField) return NULL;
if (reference.isEmpty()) return NULL;
QStringList decodedReference = reference.split(" ");
QStringList decodedReference = reference.split(QRegExp("\\s+"), QString::SkipEmptyParts);
PdmObjectHandle* lastCommonAnchestor = fromField->ownerObject();
assert(lastCommonAnchestor);
assert(decodedReference.size());