Skip to content

Commit

Permalink
bugfix: italic was not detected properly
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-zamora committed Jun 29, 2021
1 parent 2be632b commit 84fdf5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cascadia/TerminalControl/XamlUiaTextRange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
}
case VT_BOOL:
{
return box_value(result.boolVal);
return box_value<bool>(result.boolVal);
}
case VT_UNKNOWN:
{
Expand Down
2 changes: 1 addition & 1 deletion src/types/UiaTextRangeBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ std::function<bool(const TextAttribute&)> UiaTextRangeBase::_getAttrVerification
case UIA_IsItalicAttributeId:
{
pRetVal->vt = VT_BOOL;
pRetVal->lVal = attr.IsItalic();
pRetVal->boolVal = attr.IsItalic();
return _getAttrVerificationFn(attributeId, *pRetVal);
}
case UIA_StrikethroughStyleAttributeId:
Expand Down

0 comments on commit 84fdf5a

Please sign in to comment.