diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2024-03-03 17:19:49 +0100 |
---|---|---|
committer | Regina Henschel <rb.henschel@t-online.de> | 2024-03-04 14:30:21 +0100 |
commit | 199523b553957936dc31b8c3556ef2e47c6bc3a1 (patch) | |
tree | 39da22a4690075ad89ff7de4dbd7a4d6f29609f5 /sc/source | |
parent | d6f80ddb3f05a3b55239866e6e4d470f6903aaae (diff) |
tdf#160003 use correct sheet in clipboard for test
..whether a page anchored object is contained in the to be copied area.
Change-Id: I816e342770332e6d751b57a38e5ebabe33feb16a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164307
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index ed4f4ff4076c..4fac946caf1d 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -1996,7 +1996,7 @@ void ScDrawLayer::CopyFromClip(ScDrawLayer* pClipModel, SCTAB nSourceTab, } else // Object is anchored to page. { - aSrcObjStart = pClipDoc->GetRange(nClipTab, pOldObject->GetCurrentBoundRect()).aStart; + aSrcObjStart = pClipDoc->GetRange(nSourceTab, pOldObject->GetCurrentBoundRect()).aStart; } if (!rSourceRange.Contains(aSrcObjStart)) continue; |