Skip to content

Commit

Permalink
fix access violation in getparent propertypath construction
Browse files Browse the repository at this point in the history
  • Loading branch information
lshoek committed Aug 8, 2022
1 parent f018657 commit bbfbbf7
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 bbfbbf7

Please sign in to comment.