• 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
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...