Skip to content

Commit

Permalink
Don't create BoxModel for parent
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJimmi committed Nov 12, 2023
1 parent 2993894 commit 75925f3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions jive_core/geometry/jive_BoxModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ namespace jive

void BoxModel::invalidateParent()
{
if (!state.getParent().isValid())
return;

BoxModel parent{ state.getParent() };

parent.isValid = true;
parent.isValid = false;
if (auto parent = state.getParent();
parent.isValid())
{
Property<bool> parentIsValid{ parent, isValid.id };
parentIsValid = true;
parentIsValid = false;
}
}

BoxModel::ScopedCallbackLock::ScopedCallbackLock(BoxModel& boxModelToLock)
Expand Down

0 comments on commit 75925f3

Please sign in to comment.