Skip to content

Commit

Permalink
add all parents
Browse files Browse the repository at this point in the history
  • Loading branch information
PankajBhojwani committed Apr 1, 2021
1 parent 61dcf77 commit af0b227
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cascadia/TerminalSettingsModel/Profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,12 @@ void Profile::_FinalizeInheritance()
{
if (auto defaultAppearanceImpl = get_self<AppearanceConfig>(_DefaultAppearance))
{
if (auto parentDefaultAppearanceImpl = _parents.at(0)->_DefaultAppearance.try_as<AppearanceConfig>())
for (auto& parent : _parents)
{
defaultAppearanceImpl->InsertParent(0, parentDefaultAppearanceImpl);
if (auto parentDefaultAppearanceImpl = parent->_DefaultAppearance.try_as<AppearanceConfig>())
{
defaultAppearanceImpl->InsertParent(parentDefaultAppearanceImpl);
}
}
}
}
Expand Down

0 comments on commit af0b227

Please sign in to comment.