• Jinoh Kang's avatar
    riched20: Don't call wrap_marked_paras_dc() before the editor is fully initialized. · 548d7179
    Jinoh Kang authored
    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: b70eb32c
    548d7179
Name
Last commit
Last update
..
tests Loading commit data...
Makefile.in Loading commit data...
caret.c Loading commit data...
clipboard.c Loading commit data...
context.c Loading commit data...
editor.c Loading commit data...
editor.h Loading commit data...
editstr.h Loading commit data...
list.c Loading commit data...
ocr_reverse.cur Loading commit data...
ocr_reverse.svg Loading commit data...
paint.c Loading commit data...
para.c Loading commit data...
reader.c Loading commit data...
res.h Loading commit data...
riched20.spec Loading commit data...
riched_tom.idl Loading commit data...
richole.c Loading commit data...
row.c Loading commit data...
rtf.h Loading commit data...
run.c Loading commit data...
string.c Loading commit data...
style.c Loading commit data...
table.c Loading commit data...
txthost.c Loading commit data...
txtsrv.c Loading commit data...
undo.c Loading commit data...
version.rc Loading commit data...
wrap.c Loading commit data...
writer.c Loading commit data...