dwrite/layout: Skip to the next typography range when current one has no features.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57407
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-11-12 23:23:49 +01:00 committed by Alexandre Julliard
parent 698ab75a59
commit 5a7a4b7f1a
Notes: Alexandre Julliard 2024-11-14 23:13:20 +01:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6816

View file

@ -897,7 +897,7 @@ static HRESULT layout_shape_get_user_features(const struct dwrite_textlayout *la
feature_count = IDWriteTypography_GetFontFeatureCount(typography); feature_count = IDWriteTypography_GetFontFeatureCount(typography);
if (!feature_count) if (!feature_count)
{ {
i = range->h.range.length - i + 1; i = range->h.range.startPosition + range->h.range.length;
continue; continue;
} }