From 5a7a4b7f1ab170ee0d8935a3541a6dc8cea64f81 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 12 Nov 2024 23:23:49 +0100 Subject: [PATCH] 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 --- dlls/dwrite/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c index 157fc886a46..342f7e10886 100644 --- a/dlls/dwrite/layout.c +++ b/dlls/dwrite/layout.c @@ -897,7 +897,7 @@ static HRESULT layout_shape_get_user_features(const struct dwrite_textlayout *la feature_count = IDWriteTypography_GetFontFeatureCount(typography); if (!feature_count) { - i = range->h.range.length - i + 1; + i = range->h.range.startPosition + range->h.range.length; continue; }