Commit graph

473495 commits

Author SHA1 Message Date
Miklos Vajna
604bb64047 sw clearing breaks: fix rendering of the line break char itself
The larger height is needed for the break portion, so the next line
"jumps down", below the largest fly frame. But this has the side effect,
that the line break character now has an unexpected vertical position,
as it's vertically centered.

Fix the problem by going back to the text height while painting.

No test for this, SwBreakPortion::Paint() is a NOP unless rendering on a
window, so the metafile-based rendering used for testing won't detect
the difference.

Change-Id: Ifd780c79488b149ff41d8e61585ee99c96a40128
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131093
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-03-07 11:41:15 +01:00
Michael Stahl
03552ba854 cid#1500542 swext: Wiki Publisher: "Insecure TLS version"
Change-Id: I4b481cae6c1e13d34ea5a6dc3ff35a3b03ee281a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131005
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
2022-03-07 11:01:32 +01:00
Caolán McNamara
08eb43d3e7 ofz#45323 suppress Integer-overflow
Change-Id: I22f9e2cd04d152e28cf91a4d474e46b83f85c952
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131099
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-07 10:59:58 +01:00
Caolán McNamara
f6f665200c ofz: Null-dereference
Change-Id: I11213a5ab05389b7c5020d878b0f657045693e30
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131094
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-07 10:53:25 +01:00
Luboš Luňák
6adabd915d faster check whether attributes have changed (tdf#117366)
If the two item sets are equal, then trivially nothing has changed
between them.

Change-Id: Ib4c5922959603a0a28e11967a17ba4607e6a010f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131080
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-07 10:40:46 +01:00
Luboš Luňák
6810aa937c faster bulk insert into o3tl::sorted_vector (tdf#117366)
Repeated insert() into o3tl::sorted_vector can turn out to be
pathological, repeatedly moving most items aside for each
element inserted. Make it possible to insert a normal vector
that's been pre-sorted and made unique. 31s->9s for loading
tdf#117366.

Change-Id: If3a0366dd240ad46c23f5f3dc04e781b8c4b2aa2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131085
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-07 10:40:20 +01:00
Caolán McNamara
471c7d43a4 improve scope
Change-Id: I69e4e47dbc17f32dacda336f31acad7fff992088
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131089
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-07 10:00:33 +01:00
Caolán McNamara
c641ca15f2 tdf#147782 retain focus in launching frame on first activate
Change-Id: I813c675ecf7c4a364f9d770af12e99275f510e7b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131088
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-07 10:00:16 +01:00
Miklos Vajna
418cb3c844 sw: prefix members of DocxAttributeOutput, SwDBTreeList, ...
... SwTOXBaseContent and SwURLFieldContent

See tdf#94879 for motivation.

Change-Id: I6481279dcb680ebba6392bbde3f4736dd270e52a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131092
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-03-07 09:06:52 +01:00
Mike Kaganski
66a9795f27 Add unit tests for searching empty substring / zero character
Related to commit 713c83c0fc

    Add checks to avoid finding empty substring / zero character

This activates tests in sal/qa/rtl/oustring/rtl_ustr.cxx

Change-Id: Iab176e6583dc383a7a3413b0e19cc8f0d09b2824
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131087
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-03-07 05:28:01 +01:00
Jim Raykowski
99ac14c8cc tdf#140222 make InterimTearableParent docking windows not dockable
and only allow dockable type docking windows to be undocked/docked

Change-Id: Ia1b0ccbdd911c24f83baf1c0514954e354c9070b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129650
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2022-03-07 02:46:38 +01:00
Regina Henschel
b4e9eb5b97 Swap light preview bmp in extrusioncontrols to correct order
The order was wrong since commit dd1df645b4 which moved them from
independent entries in extrusioncontrols.src to an ordered array in
extrusioncontrols.cxx.

Change-Id: I346a40a0506d9103a33eb9f06c7017663d61949e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131086
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2022-03-06 23:22:33 +01:00
Caolán McNamara
4e93ba94f1 ofz#45255 handle short O_hhea table
Change-Id: I649dfdb3eff868441125fbf62ff3c7d0d18d8d19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131084
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 20:33:27 +01:00
Caolán McNamara
e0cc2e1b77 ofz#45271 suppress Integer-overflow
Change-Id: I8611f340e6fde049f209627e46f8ca0e100b9b6d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131083
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 20:33:01 +01:00
Caolán McNamara
f9b8b666cb ofz#45230 avoid OOM
Change-Id: Ia209809ddb7713d906fd481384dd463eba6dee57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131082
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 20:32:35 +01:00
Luboš Luňák
94960bb335 don't try to spellcheck after last data cell (tdf#122827)
Change-Id: I728e7f19a521f5f3583b4963d84c7d36527c8842
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131076
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-06 19:42:35 +01:00
Caolán McNamara
673369abe3 ofz#45237 suppress Integer-overflow
Change-Id: I44496ae9428a75a6a08633e5ec31a754522ef1d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131081
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 18:30:58 +01:00
Caolán McNamara
2e6a7db11b ofz: Too many hatch points
Change-Id: I08cb9d09a9bb48ab31763f50bc2fa23cf723330f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131079
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 18:30:44 +01:00
Caolán McNamara
434d852762 ofz#45276 uncaught exception
Change-Id: I5863d6474aa47f24b24a15481c8329a5e587a8d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131078
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 18:30:27 +01:00
Caolán McNamara
c207e2c7a3 ofz#45286 Integer-overflow
Change-Id: I1fb3aa68fb4e2ad274053f30d04f20ea479e1f27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131077
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 17:00:27 +01:00
Caolán McNamara
be364e3c21 ofz: Use-of-uninitialized-value
Change-Id: I1f1771c384e88417f40ea9dd76378fb057e3d977
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131075
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 16:40:32 +01:00
Caolán McNamara
08bbd27e1c ofz: Use-of-uninitialized-value
Change-Id: I41554dec3819efcd8e28f82bb732141c85414e9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131074
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 15:23:19 +01:00
Caolán McNamara
1c722a1fc0 cid#1502882 silence Unchecked dynamic_cast
Change-Id: I30c2edd4df8175b9c5bbda91f6046d631193245d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131073
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 15:23:02 +01:00
Noel Grandin
9dee54299c clear UserCall in SdPage destructor
because I want to ref-count SdrObject, which changes the lifecycles
of these objects, and then if an SdPage dies before an SdrObject
we have a dangling m_pUserCall pointer.

Change-Id: Ia08178c1b2f288f6d9d489fb9fd79e67bc3ea61c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131065
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-06 14:38:08 +01:00
Arnaud VERSINI
82f9e12b73 Fix tdf#147755 by copying the vector.
Revert partially 224953d896

Change-Id: Ic12d3b0a080ad3af69fa5c4e8c9b4d331305a663
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131066
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-06 14:37:20 +01:00
Caolán McNamara
ffa0dedf93 crashtesting: assert that !rtl::isAscii in xmlError message
probably detected since:

commit 089ce740f9
Date:   Thu Feb 24 17:45:18 2022 +0300

    Deduplicate rtl_*String_newConcat*L

or similar

Change-Id: I69ac57bd5718a4da85516e2a2afa79dc2b04665e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131068
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 13:36:42 +01:00
Luboš Luňák
06bd8d70ea make CellTextAttr half the size
It's set for every cell with value.

Change-Id: Ie46617a621e6eb16b5f67d92e85bf2155e650fb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131072
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-06 10:54:23 +01:00
Luboš Luňák
35fad78087 make a bunch of SvtBroadcaster/SvtListeners functions inline
These classes are used extensively during some operations in Calc,
and not even LTO can inline these when they end up in different
binaries.

Change-Id: I5b17a004c6cc039508b76d557d58714c83f237a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131071
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-06 10:54:07 +01:00
Caolán McNamara
143de4b1a9 os thrown -> is thrown
Change-Id: I114bb29c59ad9a4b20ca3f34b057b02d439fbd77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131067
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-03-06 10:39:02 +01:00
Justin Luth
05502f78ed link bug report to "likely wrong" comment
Change-Id: I3184037d3df79b1bf4c972046e7636b372662cdd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129825
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-03-06 08:59:49 +01:00
Luboš Luňák
52f24a3a1e don't destroy and recreate broadcasters on large changes (tdf#131894)
Change-Id: If5377687e7bcfab00af37887d3aaf302fa615690
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131070
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-06 08:20:19 +01:00
Luboš Luňák
648a4b30b3 do not destroy broadcasters and then recreate again (tdf#134268)
Sorting ends tells all listeners on all the sorted cells to end
listening to stop updates, then sorts the cells and starts
listening again. This will cause all broadcasters for the sorted
cells to temporarily stop having any listeners, so they'll be
deleted and removed from the mdds vector (which may additionally
cause moving large parts of the mdds vector repeatedly). And
since all listeners will want to listen again after the sort,
this will all need to be reconstructed. To avoid this,
temporarily block this removal and then later just checks
and remove any possibly left-over broadcasters that ended up
with no listeners.

Change-Id: Ie2d41d9acd7b657cf31a445870ce7f18d28d5ebb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131069
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-06 08:19:51 +01:00
Luboš Luňák
7ac19fbce8 remove a workaround that appears to be no longer necessary
Presumably whatever the locking problem was, it's got fixed
meanwhile.

Change-Id: I7bbd6299a501396f53ed2e8ccaf7d5893744512b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131047
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 23:53:53 +01:00
Caolán McNamara
94e8b4b6a5 ofz#45167 Integer-overflow
Change-Id: Ib112686b192558421419a8695db9c3f35c5312da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131058
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 21:42:20 +01:00
Luboš Luňák
8030b9cf1c compress RowHidden()/GetRowHeight() use in excel export (tdf#126326)
Change-Id: Idc6a704cfc820bbbb2b51eff8db8159c251ea9ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131062
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 18:34:39 +01:00
Mike Kaganski
713c83c0fc Add checks to avoid finding empty substring / zero character
... which changed in commit 281989007f

  Author Noel Grandin <noel@peralex.com>
  Date   Tue Jul 01 13:17:01 2014 +0200

    Use standard library optimised routines for OUString/OString

for optimized cases: strchr/wcschr/strrchr/wcsrchr find trailing zero
character, and strstr/wcsstr find empty string; previous/unoptimized
code does not find these. This introduced inconsistency between char
and sal_Unicode functions on non-Windows, and for sal_Unicode between
Windows and non-Windows (because on Windows, optimized code is used
for sal_Unicode, while on other platforms, unoptimized code is used).

Change-Id: I68529c91b26f4113d9bd7777fc5ac4809349864b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131064
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-03-05 18:17:55 +01:00
Luboš Luňák
805e73b555 don't bother tracking changes if both cells are empty (tdf#141174)
AppendContent() does something only if the cells differ, which can't
be the case if they're both empty, so skip unallocated cells.

Change-Id: I367801bac30a8ee641b4ce608392124bac6ef47a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131060
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 18:06:31 +01:00
Luboš Luňák
be99b23809 don't bother scanning nonexistent data (tdf#141182)
There's no point scanning for non-empty cells after the last data
cell, and this avoids processing mdds structures (such as repeated
creating of flat_segment_tree).

Change-Id: Ibec324aa2de457e8439c38a561f55ced9f478899
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131059
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 17:25:00 +01:00
Julien Nabet
eed8376408 tdf#136632: Use 'Save transparency' when exporting selected objects for PNG
To avoid some regression, consider that transparency should be enabled by default.
So only remove transparency if it's required explicitely.

+ change QA test since "Translucent" property isn't a bool but a sal_Int32
In officecfg/registry/schema/org/openoffice/Office/Common.xcs:
<prop oor:name="Translucent" oor:type="xs:int" oor:nillable="false">

Change-Id: I9bfb6aae8e2e8a31dee82f73a9165989129f222a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131057
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-03-05 16:40:14 +01:00
Noel Grandin
492098417a GetComponentServiceName can be const
Change-Id: Iac61eec0b27660dd2ff45f70c92de5a8cdc2c301
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131044
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-05 15:19:15 +01:00
Caolán McNamara
eaeb8b56a4 ofz#45231 Timeout
Change-Id: Id761d0aeaffe869c7ce3ea048bdee09b55ae60a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131055
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 14:51:50 +01:00
Caolán McNamara
80d99a387f ofz: Use-of-uninitialized-value
Change-Id: If75e11dc26aae51d658dddd464135dd8a4f965ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131054
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 14:51:31 +01:00
Caolán McNamara
2fbf7dadf6 add svm playback to local testing
Change-Id: Ie69f628ee3f37b5cdab206c0c1c201a94841bf03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131053
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 14:51:17 +01:00
Caolán McNamara
c53570e524 ofz: Use-of-uninitialized-value
Change-Id: I695b5721ec848845adff0a5c37b931b4cee5370d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131050
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 14:51:02 +01:00
Caolán McNamara
19c631692b ofz#45233 need some more services to play back metafile
Change-Id: Iafda9d9ad919a4a1a80131962c50a4a24b4b9b83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131049
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 14:50:30 +01:00
Caolán McNamara
9cec15391b ofz: record less than 10 bytes is invalid
Change-Id: Ie6b88efbc12b4c7fddb7459e50cba28fcbcf35fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131048
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 14:50:09 +01:00
Andrea Gelmini
23257525df Fix typos
Change-Id: I87f35153bbf53f58d6c8ca7b14a7fd09fec4372f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131052
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-03-05 13:49:13 +01:00
Andreas Heinisch
9d25f86236 tdf#38669 - Create the key event using a Unicode character
Instead of using a plain char, create a key event using a Unicode
character, otherwise the key event creates texts including rectangles or
wrong characters.

Change-Id: I9ec0d64998927d54eb3ae90a192c3b28e235f56d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130721
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2022-03-05 13:08:53 +01:00
Noel Grandin
34e347db72 AccessibleShape::GetStyle can be const
Change-Id: Ic71ae0645c85ec27cc6a172d379070fe88a9f452
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131045
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-05 11:59:21 +01:00
Noel Grandin
6f652725fc make some svx methods const
Change-Id: If04a160c46b8dbf641ca9d115d1560f17e87ce4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131043
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-05 11:59:04 +01:00