Commit graph

476247 commits

Author SHA1 Message Date
Stephan Bergmann
ae5b06e346 Use o3tl::make_unsigned, nStrLen is known to be non-negative here
Change-Id: Ibb51c5b47edefe3f22a3d4335bc3136988c65486
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135355
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-03 15:11:05 +02:00
Stephan Bergmann
6af99a90d0 Use more appropriate type for MultiSelection::nCurSubSel et al
(In MultiSelection::LastSelected, there is no need to set nCurSubSel (to a
potentially negative value) before setting bCurValid to false, as nCurSubSel is
only ever used after checking that bCurValid is true.)

Change-Id: I3c23c89fbb7b4ef962436476f6576af9fe623fd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135354
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-03 15:10:12 +02:00
Stephan Bergmann
628082158a Revert "Better use size_t for malloc_size"
This reverts commit 652e4ee372.  Turns out on
Windows read (aka _read) actually has a parameter of type unsigned, not size_t,
(<https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/posix-read?view=msvc-170>
"read"), so this started to cause

> C:/cygwin/home/tdf/jenkins/workspace/lo_tb_master_win64_dbg/soltools/mkdepend/main.c(504): error C2220: the following warning is treated as an error
> C:/cygwin/home/tdf/jenkins/workspace/lo_tb_master_win64_dbg/soltools/mkdepend/main.c(504): warning C4267: 'function': conversion from 'size_t' to 'unsigned int', possible loss of data

(<https://ci.libreoffice.org/job/lo_tb_master_win64_dbg/34368/>) for MSVC builds
targeting x64.

Change-Id: Ica821c8b32e225b7ebbfcbd33d8b7d55515ab3e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135270
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-03 15:09:09 +02:00
Michael Stahl
ff525d0d70 tdf#148309 sw_redlinehide: fix mail merge performance regression
The problem is that in the call to pTargetShell->EndAllAction(), the
cursor is on the node before the newly appended one that has the page
break, and only this node is formatted (via GetFormatted()), so no new
page frames are inserted in the layout, which then creates massive
performance problems later, particularly since the bugdoc contains
multiple at-page anchored flys.

(regression from commit 42448f48bb)

Change-Id: I05cd2a515a7f67132ab1c8c6fa0d675252ea3a15
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135356
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-06-03 15:08:39 +02:00
Stephan Bergmann
9c130462fd Improve some C code mixing size_t and ssize_t
Change-Id: I9b6082f3e913a9bddcb3bd035b92e829f9b00c07
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135340
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-03 15:08:19 +02:00
Noel Grandin
613467237f clang-tidy modernize-pass-by-value in cui
Change-Id: If3d2717c22e33412f813673a93ccc56d23ab2fa5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135348
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-03 15:04:41 +02:00
Caolán McNamara
c8642c0ebe allow to dynamically show/hide notebook tabs
Change-Id: I19681d9bfcd91e205e684674d1ec8f0058c1eb91
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135350
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-06-03 14:53:34 +02:00
Andrea Gelmini
4199a1d0da Remove duplicated include
Change-Id: Ie59fb3c87bf614dce7288337ab270a31645ee845
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135351
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins
2022-06-03 14:14:40 +02:00
Stephan Bergmann
949f2e0624 No need for a cast here when comparing against const int DATE_SIZE = 40
Change-Id: I2e9190ac08dc79fe624572ff3a96c32c18afce29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135341
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-03 13:26:37 +02:00
Stephan Bergmann
652e4ee372 Better use size_t for malloc_size
...as both malloc and read, to which this is passed, take arguments of type
size_t, not unsigned

Change-Id: I2b114c4e67bc9317d908d613fda607a12cf22579
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135347
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-03 13:23:49 +02:00
Stephan Bergmann
95573221d0 Fix type of impl_getISO8601TimeToken etc. string index parameters
...after 6fc3dfd3f1 "use more string_view"

Change-Id: I0f4fb75e90d18ed3331f0c857dce1cfcb7482d65
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135335
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-03 13:22:33 +02:00
Eike Rathke
bac202275b Propagate inline array only for Value parameters, tdf#149378 follow-up
So in SUM({1;2}) the SUM does not inherit it, but in ABS({-1;-2})
the ABS still does. This was always off, but so far didn't matter.

Change-Id: I00dfcd4b71b8dea943475bb5a593224312258e31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135349
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2022-06-03 13:08:11 +02:00
Caolán McNamara
6697257931 implement "show-tabs" for TabControl
defaults to the current status of "true"

Change-Id: Id4fa50d359e29fa3a7db845edbcb86a3b1caa790
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135345
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-06-03 12:27:48 +02:00
Seth Chaiklin
73dde4733f tdf#149437 "Equally" -> "Evenly" for Table Row Distribution
Change-Id: I4b7f8fa02d0e788ea62b07734c2fbcf3cc0a8ec3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135267
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-06-03 12:01:16 +02:00
Noel Grandin
c1965859c0 elide some makeStringAndClear() class
when we are passing the result to a string_view, it is pointless.

Change-Id: I4c780bd8dd356bd764b9f88400a41cca6d85f84b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135337
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-03 11:34:19 +02:00
Stephan Bergmann
1fc5b6c9bd Use more appropriate index variable type
Change-Id: I0d18657fe3565b07fb1de2f0704f62aaf8226f9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135338
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-03 11:20:25 +02:00
Roman Kuznetsov
66fe1fa945 tdf#147132 Flatten Basic function
Change-Id: Ib2646bfbebdfb6d8e8a3cd1355db75b0405ccfe6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135268
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-06-03 10:17:02 +02:00
Gülşah Köse
a658129012 tdf#136787 Add control to create 1-bit B&W bitmap while creating mask.
Glow effect creates half transparent pixels on shadow. Creating 1-bit
B&W bitmap mask treates that half transparent pixels as black.
We control 1-bit B&W bitmap creation when we have half transparent
pixels.

Change-Id: Iaf298a0e5ffeeb6637fe5d3f56cf4f8e30a203e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134981
Tested-by: Jenkins
Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com>
2022-06-03 10:15:56 +02:00
Noel Grandin
e0b72bea05 elide some makeStringAndClear() class
when we are passing the result to a string_view, it is pointless.

Change-Id: I5af990cbe1a8f2d5b19fea9a031d7d64aeba1c37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135329
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-03 10:11:38 +02:00
Stephan Bergmann
2e197356f8 Use more appropriate index variable types
Change-Id: I3c8985862aeccb350c4e8e04d3f71f9dc7018e43
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135334
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-03 10:08:57 +02:00
Noel Grandin
4f4e3f3aae elide some makeStringAndClear() class
when we are passing the result to a string_view, it is pointless.

Change-Id: Id5906bbd7315e80358d09a0d036e605c54ccbf93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135328
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-03 10:02:42 +02:00
Stephan Bergmann
d7c9a269a4 No need to static_cast these const Id (aka sal_uInt32) values
Change-Id: I1ae1a4c0e0ca002414db68bf3ad382cb564e17a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135333
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-03 10:01:36 +02:00
Adolfo Jayme Barrientos
10292a3596 Update git submodules
* Update helpcontent2 from branch 'master'
  to cfdb19246c3675fa8672cd07dfb577949768771e
  - Unnecessary
    
    Have you benchmarked all computers in the world?
    
    Change-Id: I8d818b9b7debd519001b6e1ec061b982481a5f5b
    
  - Fix remaining typo
    
    Change-Id: Id5c5100a25ce41c6cf4d5fbceaee23c68b3d8106
2022-06-03 09:53:24 +02:00
Miklos Vajna
b673b2b868 sw content controls, date: add properties dialog
- add a dateframe to contentcontroldlg.ui, to be hidden for non-date
  content controls

- use a SwNumFormatTreeView to present a list of number formats, with
  a special "additional formats..." at the end that triggers a popup
  where a custom date format and language can be set

- set the format of that tree view in the SwContentControlDlg ctor

- update the SwContentControl from the tree view in
  SwContentControlDlg::OkHdl()

Change-Id: If245eee821fd7fe8b41a40f74b9011c1a6ec140a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135327
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-06-03 09:10:23 +02:00
Noel Grandin
b33227d80b clang-tidy modernize-pass-by-value in desktop
Change-Id: Ie9c1cd41c5944b901f4ec6c1e4ffd8608c063ffa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135317
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-03 08:13:09 +02:00
Miklos Vajna
87c963199c CppunitTest_sw_layoutwriter: use more SwParaPortion::dumpAsXml()
See commit feeed3e762
(CppunitTest_sw_layoutwriter: avoid some a11y-based layout testing,
2022-04-07) for motivation.

Change-Id: I647a84109c0eb79883e1c22e59a5098aa294f02f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135325
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-06-03 08:03:26 +02:00
Stephan Bergmann
e3b48ed3b8 Fix type of cppuhelper::TypeManager::getInterfaceMember separator param
...after a5343a89f8 "use more string_view in cppu"

Change-Id: I7cd577f50cd92586e00f347b2e05247b6b5b0331
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135326
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-02 22:07:35 +02:00
Stephan Bergmann
ad67d0c99a Use more appropriate type for LocationAccess::nOwnClassVectorIndex
Change-Id: Iba1709b60a27c331dcc6cf4e6f0966d94130a66c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135320
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-02 21:33:17 +02:00
Andrea Gelmini
9030bfb840 Fix typos
Change-Id: I9b7800610a04d0c3e1d241531049fbab06943ce3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135208
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-06-02 20:55:41 +02:00
Andrea Gelmini
fc12f345a7 Removed duplicated include
Change-Id: If0b82a13aa5f8fca25fec4d4c72a05a4bf9f98ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135281
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-06-02 20:54:56 +02:00
Andrea Gelmini
7f1709d8b7 Fix typo
Change-Id: Ie7d5a2b2a6fceb09ffcb6b24a462dd6911886a1d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135307
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-06-02 20:54:10 +02:00
Stephan Bergmann
74fe9be6fd Use o3tl::make_unsigned, location is already checked to be non-negative here
Change-Id: Id052b9628e8df6d0e8b61b66f6ddc64d925427ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135321
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-02 20:37:13 +02:00
Stephan Bergmann
875abc7774 Use o3tl::make_unsigned, length is known to be non-negative
Change-Id: I2fac355230fd0c80016ca2259b8c6150e7160567
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135323
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-02 20:32:20 +02:00
Stephan Bergmann
f6f19c7ac5 Use more appropriate index variable types
Change-Id: I8d82591c12642d66344f70997c5cf40e937569b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135322
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-02 20:32:00 +02:00
Olivier Hallot
7eaa764d1d Update git submodules
* Update helpcontent2 from branch 'master'
  to 1252663b4ac9c1f1220b56f855629734f745944a
  - tdf#129674 Add index bookmark
    
     + refactor help page
    
    Change-Id: I236737649aa20019db33b10e107cba15a20db342
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/135305
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-06-02 20:30:54 +02:00
Stephan Bergmann
86795b7763 Reuse o3tl::getToken
Change-Id: Ib8d3b3d02febc03922104a954531db6057d06783
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135318
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-02 20:00:05 +02:00
Noel Grandin
f5e3ad701e clang-tidy modernize-pass-by-value in avmedia
Change-Id: Ia579341951d3fa0a227cdfa888c380b032e2ee2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135312
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-02 17:43:58 +02:00
Noel Grandin
d16122e3e9 clang-tidy modernize-pass-by-value in cppuhelper
Change-Id: I231b84cd973d730fe301045cb7442af2d1ddc5d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135311
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-02 17:43:43 +02:00
Noel Grandin
859e0acc39 clang-tidy modernize-pass-by-value in cppcanvas
Change-Id: I01e638c468f0941e042a839f73801a3ae3cb022a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135310
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-02 17:43:27 +02:00
Stephan Bergmann
b4163877e7 Use more appropriate return type for ThreadPool::getPreferredConcurrency
All call sites already effectively asked for an unsigned return type, including:
* The ThreadPool ctor took an nWorkers argument of type sal_Int32, but
  internally stores that as std::size_t mnMaxWorkers.
* ZipOutputStream::reduceScheduledThreadTasksToGivenNumberOrLess apparently
  benefits from an unsigned nThreadTasks parameter, getting rid of various casts
  in its implementation that were necessary to silence signed vs. unsigned
  comparison warnings.

The only drawback is that

  comphelper::ThreadPool::getPreferredConcurrency() * 4

in package/source/zippackage/ZipPackageStream.cxx would now silently wrap around
instead of causing UB on overflow (which could be detected with appropriate
tools).  Ideally, it would use some o3tl::saturating_mul if we had that, so add
a TODO comment for now.

While std:🧵:hardware_concurrency returns unsigned, it looked more natural
to go with std::size_t here, as some call sites already used that (see above),
so the implementation of ThreadPool::getPreferredConcurrency is a natural place
to hide clamping std:🧵:hardware_concurrency() to std::size_t (in the
unlikely case that std::size_t is of smaller rank than unsigned).

This required addition of o3tl::clamp_to_unsigned in o3tl/safeint.hxx.

Change-Id: I0a04a8b32e63ebfeb39f924c4b38520455a6fb38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135309
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-02 17:13:17 +02:00
Noel Grandin
86922db292 Revert "mark SvxFontItem as IsSortable"
This reverts commit c390c2e3f4.

Causes crashes like
./instdir/program/soffice --headless --convert-to pdf ooo30162-3.xls
because code likes modifying items that are in existing
pools.

Change-Id: I988745a538509f90f357ec6a321b2e37828a4111
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135308
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-02 15:55:55 +02:00
tagezi
3cb921dece crashreportScraper: Removed time parsing, now it just resets.
Change-Id: I39465cdbc14e28556760a0c1feab22d8998e4d16
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135050
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-06-02 15:52:20 +02:00
Noel Grandin
b1a4d2a49a tdf#148846 TOC: Character fill for tabulation is wrong
regression from
    commit 8e4453c211
    use more FastAttributeIter::toView

Change-Id: I510716d2e4c5535faefb3afb658827cca9b6c4fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135303
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-02 15:37:59 +02:00
Noel Grandin
0307018e94 tdf#149389 Crash when closing document in dead key mode while adding comment
blind fix

Change-Id: I79405cf36ce664024626ca7f348885a3dc91a593
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135304
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-02 15:11:36 +02:00
Noel Grandin
7ac26ea039 tdf#148087 assert editing a cell with OnSelectionChange macro breakpoint
assert was introduced in
    commit e1972743d6
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Sun Sep 5 15:01:44 2021 +0200
    be more disciplined with SetUpdateLayout on editengine

We want to restore UpdateLayout when we're done doing layout, we should
not just leave it FALSE

Change-Id: Ic0431ffc3c66d0d02bfd10c323b18383f52dbc95
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132209
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-02 15:01:16 +02:00
Olivier Hallot
6ec923eee1 Update git submodules
* Update helpcontent2 from branch 'master'
  to 73968565bfdc77c58423f41c8f98be019aa9f446
  - Fix broken links in CEILING functions help page
    
    Address comments from https://gerrit.libreoffice.org/c/help/+/92097
    
    Change-Id: Id4ad0b4ed3d609f9e1ddb2482afd00f318d813bc
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/135306
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-06-02 14:26:40 +02:00
Noel Grandin
30703dbe59 tdf#143964 insert/overwrite cursor shape lags in formula editing
Revert "tdf#132740 bypass work if selection has not changed"

This reverts commit 865641047b.

Change-Id: I69244a1e57ce979bf21946e31df7165f8791423c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135302
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-02 14:23:27 +02:00
Noel Grandin
0030fa0d51 tdf#145603 Drag-n-drop in formula bar creates mismatch
Revert
    commit 60d35f7677
    tdf#132740 don't broadcast if modified status has not changed

Change-Id: I5a0292499522e21708a2d5607966e4c2b3a18ba0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135301
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-02 14:22:43 +02:00
Stephan Bergmann
bee7a82ae5 A simpler way to avoid MSVC warning C4018 "signed/unsigned mismatch"
Change-Id: I0e6418598cd446dd541708fc91145e5f47d14a46
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135289
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-02 14:11:14 +02:00
Luboš Luňák
620cf04907 fix handling of XTransferable2 if the type is only XTransferable
Apparently some selections provide only XTransferable and not
XTransferable2, making this entire call think that there's no
selection at all. Handle that properly, and if XTransferable2
is not provided, then presumably it's not important to check
for isComplex().

Change-Id: I3bbafe46a6b9ac8552c62e524137e1691b54895a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135300
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-06-02 13:07:37 +02:00