Commit 7129b3e1 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite/layout: Remove unnecessary argument check from GetPairKerning().

parent 4fd206ad
......@@ -4062,9 +4062,6 @@ static HRESULT WINAPI dwritetextlayout1_GetPairKerning(IDWriteTextLayout4 *iface
TRACE("%p, %u, %p, %p.\n", iface, position, is_pairkerning_enabled, r);
if (position >= layout->len)
return S_OK;
range = get_layout_range_by_pos(layout, position);
*is_pairkerning_enabled = range->pair_kerning;
......
......@@ -6337,11 +6337,10 @@ todo_wine
value = FALSE;
hr = IDWriteTextLayout1_GetPairKerning(layout1, 10, &value, &range);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
todo_wine {
ok(range.startPosition == 10 && range.length == ~0u - 10, "Unexpected range (%u, %u).\n",
range.startPosition, range.length);
ok(!!value, "Unexpected value %d.\n", value);
}
range.startPosition = 0;
range.length = ~0u;
hr = IDWriteTextLayout1_SetPairKerning(layout1, FALSE, range);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment