mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 12:47:44 +00:00
wineps: Fix SetTextJustification playback with 0 count parameter.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55078
This commit is contained in:
parent
029bac07e9
commit
75e87c30ad
1 changed files with 10 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue