summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dochdl/swdtflvr.cxx
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2019-12-04 08:50:41 +0100
committerLászló Németh <nemeth@numbertext.org>2019-12-04 12:22:26 +0100
commit84a6d8b79455291f35211e4bd6aad3c7a0fcc9bc (patch)
tree5e7c5aa6ea0393808523c0c321c8d9fea1f12f75 /sw/source/uibase/dochdl/swdtflvr.cxx
parentb5dd9bd25ebad0bcf679d079ecb701304433d602 (diff)
tdf#129083 Writer: fix native paste from Calc
Paste the copied Calc worksheet cell by cell in a Writer table again instead of inserting it as a nested table in the actual cell. Regression from commit e9e6d4b058e13165f3dde1ca7822eec97dfe8aa7 (Make the RICHTEXT take precedence over EMBED_SOURCE). Change-Id: I226c35f9f5ca3955b2ef498d1d0aeedfcec61987 Reviewed-on: https://gerrit.libreoffice.org/84389 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/source/uibase/dochdl/swdtflvr.cxx')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 51cc3ffdbaeb..ffdbd98b4538 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -1394,11 +1394,11 @@ bool SwTransferable::Paste(SwWrtShell& rSh, TransferableDataHelper& rData, RndSt
&nActionFlags );
}
- // tdf#37223 avoid OLE insertion of worksheets in the following cases:
+ // tdf#37223 avoid non-native insertion of Calc worksheets in the following cases:
// content of 1-cell worksheets are inserted as simple text using RTF format,
// bigger worksheets within native (Writer) table cells are inserted as native tables,
// ie. cell by cell instead of embedding the worksheet in a single cell of the Writer table
- if ( EXCHG_OUT_ACTION_INSERT_OLE == nAction && ( rData.HasFormat( SotClipboardFormatId::SYLK ) ||
+ if ( EXCHG_IN_ACTION_COPY == nAction && ( rData.HasFormat( SotClipboardFormatId::SYLK ) ||
rData.HasFormat( SotClipboardFormatId::SYLK_BIGCAPS ) ) )
{
// is it a 1-cell worksheet?