Commit 75e87c30 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wineps: Fix SetTextJustification playback with 0 count parameter.

parent 029bac07
......@@ -2792,8 +2792,16 @@ static int WINAPI hmf_proc(HDC hdc, HANDLETABLE *htable,
{
const EMRSETTEXTJUSTIFICATION *p = (const EMRSETTEXTJUSTIFICATION *)rec;
data->break_extra = p->break_extra / p->break_count;
data->break_rem = p->break_extra - data->break_extra * p->break_count;
if (p->break_count)
{
data->break_extra = p->break_extra / p->break_count;
data->break_rem = p->break_extra - data->break_extra * p->break_count;
}
else
{
data->break_extra = 0;
data->break_rem = 0;
}
return PlayEnhMetaFileRecord(data->ctx->hdc, htable, rec, handle_count);
}
......
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