Skip to content

Commit

Permalink
Merge pull request #214 from naivisoftware/fix_propertypath
Browse files Browse the repository at this point in the history
Fix access violation in PropertyPath::getParent propertyPath construction
  • Loading branch information
cklosters authored Aug 8, 2022
2 parents f018657 + bbfbbf7 commit 7a1065b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/napkin/src/propertypath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ PropertyPath PropertyPath::getParent() const
if (hasProperty())
{
if (mPropertyPath.size() > 1)
return { mObjectPath, PPath(mPropertyPath.begin(), mObjectPath.begin() + mObjectPath.size() - 1), *mDocument };
return { mObjectPath, PPath(mPropertyPath.begin(), mPropertyPath.begin() + mPropertyPath.size() - 1), *mDocument };

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

0 comments on commit 7a1065b

Please sign in to comment.