tdf#149529 crash on deref deleted ScDocument*
commit10404751bcb643605c50d530e3855ae005e60a5e
authorCaolán McNamara <caolanm@redhat.com>
Thu, 16 Jun 2022 12:47:31 +0000 (16 13:47 +0100)
committerEike Rathke <erack@redhat.com>
Thu, 16 Jun 2022 15:44:24 +0000 (16 17:44 +0200)
treef0e88d967aba8840ad038e95e407323dac59d3db
parentb2bee5a4db5552c4d408800908ca717b4ea2564a
tdf#149529 crash on deref deleted ScDocument*

maybe a problem since

commit 46419cd7a2d453c6f252c28dfb9dbfb08605e1c4
Date:   Tue Jun 18 15:11:30 2013 -0400

    ScFormulaCell is no longer a child class of ScBaseCell.

    Change-Id: Id33072f193045e2eaf51373b47dac803f9a5d52c

presumably the cloned ScColorScaleEntry should end up with
a ScFormulaCell for the destination document and not the source one

Change-Id: I451d5827be183198b61116ab8c582cfda03b2031
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135998
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
sc/source/core/data/colorscale.cxx