diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-07-10 11:27:17 +0200 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2023-07-10 14:39:10 +0200 |
commit | 73301ab652a848660147835b5fb7ecfc828091be (patch) | |
tree | b629c2f2caaecbcf5bc6816c166a341e9ea70add | |
parent | 0c79bd83ed89cc900d112a399308205bf50363ec (diff) |
lok: copy simple selection even when filtered
when selected cells contain data filtered with autofilter
and regular cells after that - we get different type
of selection called SC_MARK_SIMPLE_FILTERED
allow copying that too
Change-Id: I69f91a674f427a7b956fd87b8dc56937b3b55e86
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154250
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
-rw-r--r-- | sc/source/ui/view/viewfun3.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx index 5d36b74999e2..fd586c740c90 100644 --- a/sc/source/ui/view/viewfun3.cxx +++ b/sc/source/ui/view/viewfun3.cxx @@ -431,7 +431,8 @@ bool ScViewFunc::CopyToClipMultiRange( const ScDocument* pInputClipDoc, const Sc rtl::Reference<ScTransferObj> ScViewFunc::CopyToTransferable() { ScRange aRange; - if ( GetViewData().GetSimpleArea( aRange ) == SC_MARK_SIMPLE ) + auto eMarkType = GetViewData().GetSimpleArea( aRange ); + if ( eMarkType == SC_MARK_SIMPLE || eMarkType == SC_MARK_SIMPLE_FILTERED ) { ScDocument& rDoc = GetViewData().GetDocument(); ScMarkData& rMark = GetViewData().GetMarkData(); |