reintroduce ScCaptionPtr
commit05602710a047c58db0ceda88bedc291420990bc1
authorLuboš Luňák <l.lunak@collabora.com>
Tue, 12 Feb 2019 12:48:53 +0000 (12 13:48 +0100)
committerMichael Meeks <michael.meeks@collabora.com>
Thu, 28 Feb 2019 14:52:51 +0000 (28 15:52 +0100)
tree3f74ed616190ad8b95a9f35942ba3149f223e68b
parent07ba22e2953a91b61e770de2b4e3aefa9ea33dc6
reintroduce ScCaptionPtr

This basically reverts b6b1ded0a0539e7be1b5338de378a3276a6ff445, since it
introduces tdf#118707, and I cannot reproduce any of the original problems
when reverting.
The patch itself is technically correct, but the problem is in the Windows
implementation of clipboard handling, which uses delayed processing
of setting clipboard contents. This leads to previous clipboard contents
being deleted too late, and with shared_ptr instances of SdrCaptionObj may
get deleted after the related SdrModel has already been deleted.
A proper fix would be to remove the stupid delayed processing from
the clipboard code, but that's non-trivial. If that gets fixed, the change
removing ScCaptionPtr may most probably be applied again.

Change-Id: I29634847486aa955b20483c9eb38bba4fed87187
Reviewed-on: https://gerrit.libreoffice.org/67725
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
24 files changed:
sc/inc/postit.hxx
sc/inc/scmod.hxx
sc/qa/unit/ucalc.cxx
sc/source/core/data/documen3.cxx
sc/source/core/data/document.cxx
sc/source/core/data/postit.cxx
sc/source/core/tool/detfunc.cxx
sc/source/filter/excel/xeescher.cxx
sc/source/filter/xml/xmlexprt.cxx
sc/source/ui/app/scmod.cxx
sc/source/ui/docshell/docfunc.cxx
sc/source/ui/docshell/docsh.cxx
sc/source/ui/drawfunc/futext3.cxx
sc/source/ui/inc/docsh.hxx
sc/source/ui/inc/notemark.hxx
sc/source/ui/inc/undocell.hxx
sc/source/ui/undo/undocell.cxx
sc/source/ui/unoobj/editsrc.cxx
sc/source/ui/unoobj/notesuno.cxx
sc/source/ui/view/drawview.cxx
sc/source/ui/view/gridwin.cxx
sc/source/ui/view/notemark.cxx
sc/source/ui/view/tabview5.cxx
sc/source/ui/view/viewfun6.cxx