Commit graph

469280 commits

Author SHA1 Message Date
Dr. David Alan Gilbert
a00fab4e6b test_corefl: Fix OSL_ENSURE bracketing
cppcheck spotted a couple of misplaced brackets where the
error text was ,'d after the end of OSL_ENSURE

Change-Id: I5ab2c79b2438b764956e8064df95e713997ad2c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125018
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2021-11-15 14:44:07 +01:00
Jean-Pierre Ledure
6b4f02396b ScriptForge - (SF_Calc) new OpenRangeSelector() method
The method activates the Calc document, opens a non-modal dialog
with a text box, let the user make a selection in the current
or another sheet and returns the selected area as a string.
This method does not change the current selection.

Arguments:
 Title: the title to display on the top of the dialog
 Selection: a default preselection as a String.
   When absent, the first element of the current selection is preselected.
 SingleCell: When True, only a single cell may be selected. Default = False
 CloseAfterSelect: When True (default-, the dialog is closed immediately
   after the selection. When False, the user may change his/her mind
   and must close the dialog manually.
Returns:
 The selected range as a string, or the empty string
 when the user cancelled the request (close window button)

Example:
 Dim sSelect As String, vValues As Variant
 sSelect = oDoc.OpenRangeSelector("Select a range ...")
 If sSelect = "" Then Exit Function
 vValues = oDoc.GetValue(sSelect)

The implementation requires a new module: SF_DocumentListener.xba

The method is available for Basic and Python user scripts.

Change-Id: I2d67a9c900ea8ac661cd6b6fb43bb4a34e6abd8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125201
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-11-15 13:47:26 +01:00
Caolán McNamara
97c59688a0 gtk4: fill in some missing parts of Widget::draw
Change-Id: I43af62289369b846f332d350a1a8caa56b6cbe20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125227
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-15 13:38:37 +01:00
Caolán McNamara
e3f9e4beae gtk4: implement screenshot
Change-Id: I4d9e01a246a6cd7296b405cb6d5424137f4faacf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125226
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-15 13:38:23 +01:00
Caolán McNamara
28fc57ee7d gtk4: implement something meaningful for get_monitor_workarea
Change-Id: I3f107f591ebdcaad2f4e986a665b132ccfb78f1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125224
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-15 13:38:04 +01:00
Michael Weghorn
5470514db7 tdf#139031 Better align dropdowns in PDF export dialog
* set "hexpand" to True for the "PDF/A version"
  and the "Submit format" comboboxes (and relevant
  containers) and add a 6px margin for the parent container
  ("frame4"), so the comboboxes expand to the right
  and still have a proper margin at the right

* Set "halign" to "start" for the "PDF/A version" label,
  as is the case for the "Submit format" one

Change-Id: I2651da2770134aae8d6a494e9de3ec8184664b3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125104
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2021-11-15 13:01:15 +01:00
Caolán McNamara
90705b6772 add a rule to enforce not sharing adjustments between widgets
Change-Id: I44e9548c41de2ea4816d5b87d7491ad06a46f111
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125204
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-15 12:35:08 +01:00
Miklos Vajna
2a8506c2f2 svl: use std::rotate() in SfxUndoManager::ImplUndo()
Instead of manually moving out, moving a range and then moving in.

Change-Id: Iaff461e1fcee3936c8ddc02bf471a804e7881aef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125219
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2021-11-15 11:39:56 +01:00
Miklos Vajna
c858a59158 sw: prefix members of SwInsertIdxMarkWrapper, ...
... SwLinguServiceEventListener, SwTemplateControl and SwTypeNumber

See tdf#94879 for motivation.

Change-Id: Ia76bd27b6ae361dbeb03d2cdab5b95bd0033460b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125217
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2021-11-15 11:25:24 +01:00
Caolán McNamara
fcf0d98380 add a rule to enforce always-show-image of True if an image is used
If not set, then gtk3 will show the image if there is no text, but only
the text if there's an image. For simplicity sake just enforce it as
true if an image is referenced.

Change-Id: Id4bb9140ba83e7e07e0d8ec5e3c29aece49b9087
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125200
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-15 11:20:49 +01:00
Caolán McNamara
093eb46aea Resolves: tdf#140250 don't share adjustments between differerent spinbuttons
Change-Id: Ib684c746ff3176cf45ea9364efc12f2d6dde1f70
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125199
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-15 11:20:27 +01:00
Stephan Bergmann
32334811f0 loplugin:fakebool
..."use "bool" instead of 'gboolean' (aka 'int')" after Clang 14 trunk
<4d8fff477e>
"[clang] retain type sugar in auto / template argument deduction".  Arguably,
the plugin should not warn about uses of `auto`, but then again there is a very
similar case a few lines above that already uses `bool` instead of `auto`, so
clean this one up as well.

Change-Id: I62afa5ed30c192df7fa45aeb7d4a160712fa3794
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125215
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-11-15 11:14:41 +01:00
Miklos Vajna
e6968f0485 PPTX import: fix handling of theme overrides in the chart import
A problem since commit 08818d8a45
(bnc#882383: Do not ignore themeOverride for charts in .pptx,
2014-07-04), an override for one chart should not affect later drawingML
objects.

Change-Id: I22b70c8c82e8e8520179c628f566d7f6663c887f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125218
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2021-11-15 10:41:16 +01:00
Noel Grandin
8c45639a19 move xmloff chart tables into cxx file
instead of playing games with #define

Change-Id: I3f15745b5e107b1e83b97a905cc05fc57f8369bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125213
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-15 10:08:14 +01:00
Hossein
3780e283f4 Remove unused header path: vcl workben makefiles
Removed boost and other unused header paths from vcl workbench
makefiles.

Change-Id: Ie8a3abdf599c397a8a75c251a4e530d34e5bb806
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125175
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-11-15 10:03:11 +01:00
Stephan Bergmann
71ac0dac9a Adapt CompilerTest_compilerplugins_clang
...to Clang 14 trunk
<4d8fff477e>
"[clang] retain type sugar in auto / template argument deduction"

Change-Id: I3f106eeedf00e622c294c4e4c8326cf3a5e418cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125214
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-11-15 09:53:18 +01:00
László Németh
dbc2bdffbe tdf#145091 DOCX: don't export obsolete table row change data
Rejection of table deletion or accepting table insertion
imported from a DOCX document kept row changes in DOCX export.
Use SwExtraRedlineTable/SwTableRowRedline data only if it's
not obsolete.

Follow-up of commit 05366b8e66
"tdf#60382 sw offapi: add change tracking of table/row deletion".

Change-Id: I247e13e86c0115604079e4852aa8663f1bfead91
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125114
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2021-11-15 09:26:00 +01:00
Noel Grandin
1badef89c0 rtl::Static->thread-safe static in linguistic
Change-Id: Ie028e0d93f4dec4974d357900a2d5d84275a9a8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125209
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-15 09:25:13 +01:00
Noel Grandin
92857b181a tdf#145323 reportbuilder Moving a field corrupts the field
regression from
    commit 09cb778b6e
    clean up SdrObject cloning

Change-Id: I7f234dee1dca704195eeebba874c80e73c7abe91
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125196
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-15 08:35:08 +01:00
Hossein
b56abc20eb Clean C++ SDK example "counter"
* Use <iostream> instead of <stdio.h>

Change-Id: I5cc70613c0b183c24bfa73b779dac3b382b31c93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123328
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-11-15 08:24:42 +01:00
Hossein
52ad81c748 Use basegfx::rad2deg() instead of *57.29577951308
* Replaced multiplying by magic number 57.29577951308 with
    basegfx::rad2deg() which is equal to 180.0/M_PI
* Instances of this could be found using:

   git grep 57.29577951308 *.cxx *.hxx

Change-Id: I0ae99a5d63d104b79c6df2dc88e9dda6973a1d3b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124226
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2021-11-15 07:56:51 +01:00
Hossein
7a0d3ed55c Fixing the license statement for the Convertor C++ example
Fixing the license statement for the 'Convertor.cxx' and 'Makefile'
according to the '/TEMPLATE.SOURCECODE.HEADER'

This example was added in 83b529d883

Change-Id: I654d641999aab6951ad21f84fd75e080bb709ec4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125128
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-11-15 07:35:39 +01:00
Rizal Muttaqin
6f3f033f91 KJ: tdf#144036 add UNO Object Inspector
Change-Id: I8465b3c2d13210d01f3742cd8bcc40b5692528ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125210
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2021-11-15 05:13:47 +01:00
Rizal Muttaqin
abe18bae18 elementary: tdf#144036 add UNO Object Inspector
Change-Id: I944e666905de6d6ca51c8439ca40a687ed8c3e80
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125205
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Rizal Muttaqin <rizmut@libreoffice.org>
2021-11-14 22:30:24 +01:00
Noel Grandin
864cbd8b22 rtl::Static->thread-safe static in sal
Change-Id: I04f8a05aaa078642ee5e55c777b9b259c089695b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125197
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-14 21:05:11 +01:00
Caolán McNamara
c77a881ee3 tdf#145655 toggle on always-show-icon for animation panel 'add' button
Change-Id: If50d88f9c4a491f747ab0b39b50823cec92ccb27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125174
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-14 20:12:04 +01:00
Luboš Luňák
63bb32dff8 clang-cl requires -Xclang for -fpch-* options
Change-Id: I96fb0ffaf66476a605966df3f2bde3756ae67ec8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125198
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-11-14 18:41:35 +01:00
Rizal Muttaqin
28d43b6965 tdf#145672 All icon themes except Colibre Export Preview PDF icons
Change-Id: I6e078c16a0033c200012415ee28a86af8e0ea876
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125180
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2021-11-14 17:11:29 +01:00
Henry Castro
a0c778cda7 lok: sw: remove database tab
It is not functional the database feature yet.

Change-Id: Iea073512424a738dc2d789923740b837d6f3d691
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125113
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit ead2aa7a70)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125130
Tested-by: Jenkins
2021-11-14 16:31:23 +01:00
Caolán McNamara
ec4b6f6b99 remove an ugly coverity warning suppression
Change-Id: I243638e242f68d61b639d4afbcb5d65575cc46e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125172
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-14 15:54:38 +01:00
Caolán McNamara
d9faec2922 cid#1421164 Uncaught exception
Change-Id: I1268249349e4817c2ebade909b4ce8fa65365407
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125171
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-14 15:53:59 +01:00
Julien Nabet
29f5bad823 Replace GET_PARAM in ado/ACallableStatement.cxx (connectivity)
Change-Id: I01b7992a5e53dff324208353d8a5196bd16ab0ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125194
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-11-14 13:36:40 +01:00
Julien Nabet
1ba3ab4f7d Replace VISIT_PARAMETER in commontools/parameters.cxx (connectivity)
Change-Id: I4d6bcac319a318623837994ec7942ea49ffa125a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125195
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-11-14 13:26:15 +01:00
Julien Nabet
b99dfd34f5 Replace SYM_MAP in evoab2/EApi.cxx (connectivity)
Change-Id: I4df5e2db1c94e5cd29b11d960e3f37dfac3b7ac2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125193
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-11-14 13:04:16 +01:00
Rizal Muttaqin
574694a947 tdf#145670 Breeze & Sifr: Add missing 1.15 line spacing icons
Change-Id: I3620e5fd14e167e6841c58de4d831955bffca23c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125178
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2021-11-14 11:20:52 +01:00
Rizal Muttaqin
82eda057eb tdf#145670 Colibre,elementary,KJ,Sukapura: Add missing 1.15 line spacing icons
Change-Id: I2ab7e47063eac4e6e2026346746d6f87062c1669
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125177
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2021-11-14 11:14:20 +01:00
Hossein
35c85effec Use M_PI instead of defined value; use rad2deg()
* Replace defined values of PI with M_PI defined in <cmath>
* Use M_PI_2 instead of PI / 2.0
* Instances could be found with:

    git grep 3.14 *.cxx *.hxx|grep define

* One instance is ignored:

  sc/source/core/opencl/opinlinefun_statistical.cxx

* Replace *(180 / PI) with basegfx::rad2deg()
* Replace 2*PI/360 with basegfx::deg2rad()
* Use atan2 instead of atan where it was more appropriate
  + atan2() handles all 4 quadrants
  + Extra conditions for different quadrants are removed

Change-Id: I083ee2e1427cd36ba0b8c38e4fe5f782d6486075
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124229
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-11-14 08:14:15 +01:00
Jim Raykowski
4d4278b140 SwNavigator: Fix expanded Headings/Outlines not staying expanded
Fixes expanded Headings/Outlines in the Navigator content tree
collapsing to first level children when a change to the document causes
content tree update or when Headings/Outlines is toggled between root
content navigation view.

Change-Id: I473782ad46c52cc40c1994860be7288b1c03c623
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125083
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2021-11-14 05:31:32 +01:00
Mike Kaganski
7b8f630db3 Use o3tl::convert
Change-Id: I78db3001d602ec1a0847785b3c127b9d345f5af7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125173
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-11-13 23:38:37 +01:00
Regina Henschel
44f20abf66 use new method too in existing unit tests in svdraw.cxx
Commit 87e5cac has introduced a local method for a common part of the
new unit tests. Identical parts are used in two existing unit tests.
The patch replaces them with calls to the new method.

Change-Id: I2945add642ac38048dd1fab4ffc3f2649a261650
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125168
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2021-11-13 18:42:09 +01:00
Chris Sherlock
97ef7881ce tdf#144961 vcl: test PhysicalFontCollection::FindFontFamilyByAttributes()
Note there are missing tests that I will add in the next patch

Change-Id: I98bfb27c424c615f240c687cb5251fe958b4a032
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123308
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2021-11-13 17:59:37 +01:00
Thorsten Behrens
a323857126 No auto-usage of [s]ccache on Windows for PCH builds
Since that's a pessimisation. Any manual override
(--enable-ccache, or --disable-pch) will again make configure
auto-enable [s]ccache if binaries are found.

Change-Id: I4c0773300c792ebb1807d092d3622d90dfac7d5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125073
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-11-13 16:39:40 +01:00
Noel Grandin
39f4fd491c rtl::Static->thread-safe static
Change-Id: I3010494a750eee70ffe9c24c10417d0a3730dbd6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125120
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-13 15:59:32 +01:00
Mike Kaganski
1b6e3efe96 Simplify m_aAppId initialization
Change-Id: Ib760edab95e988b78505de256aba1b09213600fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125127
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-11-13 15:55:54 +01:00
Luboš Luňák
359b53acdb do not rebuild PCHs on icecream/ccache change
We turn -Wunused-macros on or off depending on whether icecream/ccache
are used, and since now PCHs rebuild on CXXFLAGS changes, a plain
temporary 'CCACHE_DISABLE=1' caused a rebuild.

Change-Id: I63d539ac037d595f76a39e585011d1fde54f7f20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125125
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-11-13 13:43:39 +01:00
Julien Nabet
7dc558c298 loplugin:conststringvar
[CXX] vcl/source/window/keycod.cxx
/home/julien/lo/libreoffice/vcl/skia/SkiaHelper.cxx:664:21: error: variable is only used as rvalue, should be const [loplugin:conststringvar]
        const char* diff = R"(
        ~~~~~~~~~~~~^~~~~~~~~~
1 error generated.

From https://cgit.freedesktop.org/libreoffice/core/commit/?id=110fa313628c55fef1d35830358aea7e27c1e3ee
get rid of Skia's 'rasterhack' for Invert()
It seems that manually writing a shader that does the same
as SkBlendMode::kDifference works fine even though the blend mode
crashes e.g. on Windows/AMD. So get rid of the memory<->GPU
conversions and use the shader as a workaround.

Change-Id: I721d88664f9cb03529ec6e9244424d8e3ed4d156
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125126
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-11-13 13:40:09 +01:00
Noel Grandin
bf2048b1d2 rtl::Static->thread-safe static in StaticNamespaceMap
Change-Id: Iea6f7f96685e332407288af7ada36527acc83a8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125119
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-13 13:01:06 +01:00
Mike Kaganski
a339ebca55 Drop unused variables
nWidth/nHeight (1) are irrelevant here (we get the correct pixel size
right in the hDIB), and (2) should not be -1, because we don't use
ICAP_UNDEFINEDIMAGESIZE capability [1].

[1] https://twain.org/wp-content/uploads/2017/03/TWAIN-2.4-Specification.pdf#page=268

Change-Id: I8cb20087944536552326b3e1582e8ef12dcc0d32
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124986
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-11-13 12:12:45 +01:00
Luboš Luňák
9af1dc8a03 add more tests for OutputDev::DrawOutDev()
Test also copy to self and clipped copy.

Change-Id: I3f741e5035fe1f4fb224dc7fe4ba7aa5b4860dda
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125122
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-11-13 10:19:57 +01:00
Vasily Melenchuk
a4485bd8e0 tdf#145610: lists should not have includeUpperLevels < 1
Unlike its name, this variable stores *total* amount of levels
to includes, so during conversion even empty list format to
prefix/suffix/includeupperlevels we should keep last one above
zero so list even in future will not have issues with levels
to display.

Change-Id: I4992c1ac0194f381df9f7b965ecdb2d688892b30
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125022
Tested-by: Jenkins
Reviewed-by: Vasily Melenchuk <vasily.melenchuk@cib.de>
2021-11-13 09:58:46 +01:00