[Libreoffice-commits] core.git: sw/source
László Németh (via logerrit)
logerrit at kemper.freedesktop.org
Wed Nov 13 15:29:44 UTC 2019
sw/source/uibase/dochdl/swdtflvr.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit f4b472a218cbde432659cd4d70ddf47dd1d1619e
Author: László Németh <nemeth at numbertext.org>
AuthorDate: Wed Nov 13 11:27:21 2019 +0100
Commit: László Németh <nemeth at numbertext.org>
CommitDate: Wed Nov 13 16:28:53 2019 +0100
tdf#128776 Writer: fix Ctrl + drag and drop table copy
Regression from the commit 7fe64353dc9950e19182a59a486a1ecac27cf98e
(tdf#84806 Writer: drag and drop selected tables, don't empty).
Change-Id: I9061b80dd8fab29aa5ec74655dc6c3f7686a91ee
Reviewed-on: https://gerrit.libreoffice.org/82579
Reviewed-by: László Németh <nemeth at numbertext.org>
Tested-by: László Németh <nemeth at numbertext.org>
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 155efd32296b..bcb5f60babe1 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -3696,7 +3696,7 @@ bool SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
bool bSttWrd = false;
bool bSttPara = false;
bool bTableSel = false;
- bool bTableWholeSel = false;
+ bool bTableMove = false;
bool bFrameSel = false;
SwWrtShell& rSrcSh = *GetShell();
@@ -3762,8 +3762,8 @@ bool SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
if( rSrcSh.IsTableMode() )
{
bTableSel = true;
- if ( rSrcSh.HasWholeTabSelection() )
- bTableWholeSel = true;
+ if ( bMove && rSrcSh.HasWholeTabSelection() )
+ bTableMove = true;
}
else if( rSrcSh.IsSelFrameMode() || rSrcSh.IsObjSelected() )
{
@@ -3937,7 +3937,7 @@ bool SwTransferable::PrivateDrop( SwWrtShell& rSh, const Point& rDragPt,
}
}
}
- else if ( bRet && bTableWholeSel )
+ else if ( bRet && bTableMove )
{
SfxDispatcher* pDispatch = rSrcSh.GetView().GetViewFrame()->GetDispatcher();
pDispatch->Execute(FN_TABLE_DELETE_TABLE, SfxCallMode::SYNCHRON);
More information about the Libreoffice-commits
mailing list