tdf#142635: use the same ScDocument for clipboard and GlobalDrawPersist
commit964e2eaae9d32df201574e6f083acc630fed2f1d
authorMike Kaganski <mike.kaganski@collabora.com>
Mon, 16 May 2022 06:03:03 +0000 (16 09:03 +0300)
committerMike Kaganski <mike.kaganski@collabora.com>
Tue, 17 May 2022 04:15:48 +0000 (17 06:15 +0200)
treea4508d47247bd46ae3c317828e9832de3cf4ed8c
parent5386e561204af47a7a5eac3e56850478980bbc15
tdf#142635: use the same ScDocument for clipboard and GlobalDrawPersist

This way, the document used for chart copy has the proper sheets, and
the data ranges are created correctly.

This reverts commit 8d98dd8b3896c14af057e90e3a327172a9262e03
  Author Mike Kaganski <mike.kaganski@collabora.com>
  Date   Thu Jun 03 13:15:11 2021 +0200
    tdf#142635: skip UITest for now

Change-Id: I0a3aa6028f49ded278f8665556007b1f722e21b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134251
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
sc/qa/uitest/chart/copyPaste.py
sc/source/core/data/documen3.cxx
sc/source/core/data/documen5.cxx
sc/source/core/data/document.cxx
sc/source/ui/app/transobj.cxx
sc/source/ui/docshell/docsh.cxx
sc/source/ui/docshell/docsh2.cxx
sc/source/ui/inc/docsh.hxx
sc/source/ui/inc/transobj.hxx
sc/source/ui/view/viewfun3.cxx