mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
Caf: Improved reference parsing by using regexp for splitting an any whitespace
This commit is contained in:
parent
26191fd54d
commit
eaf6bb6768
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user