Fixed overlay rank for primary and secondary text.

This commit is contained in:
Daria Volvenkova 2017-10-18 17:30:08 +03:00 committed by r.kuznetsov
parent ba087c6ede
commit 8994ebe59f

View file

@ -299,7 +299,7 @@ void TextShape::DrawSubStringPlain(StraightTextLayout const & layout, dp::FontDe
true);
handle->SetPivotZ(m_params.m_posZ);
handle->SetOverlayRank(m_hasPOI ? (isPrimary ? dp::OverlayRank1 : dp::OverlayRank2)
: dp::OverlayRank0);
: (isPrimary ? dp::OverlayRank0 : dp::OverlayRank1));
handle->SetExtendingSize(m_params.m_extendingSize);
if (m_params.m_specialDisplacement == SpecialDisplacement::UserMark)
handle->SetUserMarkOverlay(true);
@ -350,7 +350,7 @@ void TextShape::DrawSubStringOutlined(StraightTextLayout const & layout, dp::Fon
true);
handle->SetPivotZ(m_params.m_posZ);
handle->SetOverlayRank(m_hasPOI ? (isPrimary ? dp::OverlayRank1 : dp::OverlayRank2)
: dp::OverlayRank0);
: (isPrimary ? dp::OverlayRank0 : dp::OverlayRank1));
handle->SetExtendingSize(m_params.m_extendingSize);
dp::AttributeProvider provider(2, static_cast<uint32_t>(staticBuffer.size()));