Skip to content

Commit 7a1065b

Browse files
authored
Merge pull request #214 from naivisoftware/fix_propertypath
Fix access violation in PropertyPath::getParent propertyPath construction
2 parents f018657 + bbfbbf7 commit 7a1065b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/napkin/src/propertypath.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ PropertyPath PropertyPath::getParent() const
394394
if (hasProperty())
395395
{
396396
if (mPropertyPath.size() > 1)
397-
return { mObjectPath, PPath(mPropertyPath.begin(), mObjectPath.begin() + mObjectPath.size() - 1), *mDocument };
397+
return { mObjectPath, PPath(mPropertyPath.begin(), mPropertyPath.begin() + mPropertyPath.size() - 1), *mDocument };
398398

399399
if (mPropertyPath.size() == 1)
400400
return { mObjectPath, *mDocument };

0 commit comments

Comments
 (0)