mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 07:37:02 +00:00
548d7179e3
Today, CreateTextServices() sometimes triggers an assertion failure in
select_style().
When ME_MakeEditor() calls ME_MakeFirstParagraph(), the editor
(ME_TextEditor) is not in a fully initialized state. For example, the
font cache (pFontCache) is not fully initialized, which sometimes makes
select_style() believe that the cache slots are fully occupied.
Fix this by delaying the call to wrap_marked_paras_dc() until the editor
is fully initialized.
Also, delay the call to ITextHost::TxReleaseDC() until after
wrap_marked_paras_dc(), since we need the device context a bit longer.
Fixes:
|
||
---|---|---|
.. | ||
tests | ||
caret.c | ||
clipboard.c | ||
context.c | ||
editor.c | ||
editor.h | ||
editstr.h | ||
list.c | ||
Makefile.in | ||
ocr_reverse.cur | ||
ocr_reverse.svg | ||
paint.c | ||
para.c | ||
reader.c | ||
res.h | ||
riched20.spec | ||
riched_tom.idl | ||
richole.c | ||
row.c | ||
rtf.h | ||
run.c | ||
string.c | ||
style.c | ||
table.c | ||
txthost.c | ||
txtsrv.c | ||
undo.c | ||
version.rc | ||
wrap.c | ||
writer.c |