diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-04-28 13:26:01 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-05-02 18:57:01 +0200 |
commit | 6d5b1ba501771cfa693b46d82ec88333302f02bb (patch) | |
tree | d0ba774cf2d15bf817968cbf05da23091bda0cac /config_host_lang.mk.in | |
parent | 67fe6ae146385d880c47c25a289e9a6b54333b1c (diff) |
tdf#107474 sw: fix crash when deleting header with active SdrObject
The problem is that the SdrView's text edit mode remains active when
the header is deleted, which deletes the active SdrObject that is
anchored in the header.
Then the next call to SdrBeginTextEdit() will call SdrEndTextEdit()
but the mxTextEditObj WeakReference is null then and so the cleanup
code that resets the SdrOutliner's UndoManager is not called,
but then the SdrOutliner is deleted.
What's really horrible about this is that while text editing is active,
both SdrObjEditView and ImpEditEngine consider themselves the
exclusive owner of SwDoc's UndoManager.
(regression from 12a4200e8ff7f045efcc7e9d15a24b15b248c437
and d7b7c9fdfe63deec26c420efc3ff1fd73c21bb27)
Change-Id: I17c5165a03d2de1eaba8a335dfbfded56573f8a2
(cherry picked from commit 7f207fca577ef820be2aec0a442df7e8ab6e14a6)
Reviewed-on: https://gerrit.libreoffice.org/37069
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit e07c2c3861f47946ed72fc9b67aafeaa8598468d)
Reviewed-on: https://gerrit.libreoffice.org/37156
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'config_host_lang.mk.in')
0 files changed, 0 insertions, 0 deletions