• Lionel Elie Mamane's avatar
    make FmXGridCell more disposed-safe · 6f382467
    Lionel Elie Mamane yazdı
    fixes a segfault (crash) in these conditions:
    
    * the form's AfterInsert StarBasic script does a reload() of the form
    
    * the insert happens by clicking into a cell which has
      scripts linked to the events FocusLost and FocusGained.
      The case that led to discovering this involved a ListBox whose
      RecordSource changes when focus is gained or lost.
    
    Then there was a race condition between the cell's dispose (from the
    form's reload()) and the _old_ cell's FocusLost being executed.
    NewStyleUNOScript::invoke would then call
    xControl->getModel
    with xControl being the involved cell,
    leading FmXGridCell::getModel() to call m_pColumn->getModel()
    with m_pColumn == NULL.
    
    Change-Id: Ifb4402d37ee4faec80087ffccabe102acc016d60
    Reviewed-on: https://gerrit.libreoffice.org/18669Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
    Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
    6f382467
Adı
Son kayıt (commit)
Son güncelleme
..
doc Loading commit data...
inc Loading commit data...
qa Loading commit data...
sdi Loading commit data...
source Loading commit data...
uiconfig/ui Loading commit data...
util Loading commit data...
workben Loading commit data...
AllLangResTarget_gal.mk Loading commit data...
AllLangResTarget_ofa.mk Loading commit data...
AllLangResTarget_svx.mk Loading commit data...
CppunitTest_svx_unit.mk Loading commit data...
Executable_gengal.mk Loading commit data...
Executable_pixelctl.mk Loading commit data...
JunitTest_svx_unoapi.mk Loading commit data...
Library_svx.mk Loading commit data...
Library_svxcore.mk Loading commit data...
Library_textconversiondlgs.mk Loading commit data...
Makefile Loading commit data...
Module_svx.mk Loading commit data...
Package_gengal.mk Loading commit data...
README Loading commit data...
UIConfig_svx.mk Loading commit data...