Commit graph

500324 commits

Author SHA1 Message Date
Stephan Bergmann
ce8ac330eb Emscripten: For executables, only build .js files, not .html files
...as for the by-default --enable-qt5 case we generate an additional
qt_soffice.html anyway (and for a --disable-gui --disable-qt5 build, client code
probably wants to embed the results into its own HTML document and wouldn't rely
on an soffice.html); this simplifies the build infrastructure a little

Change-Id: Ib50799b5dd2fcfeb680f257f46ff65775dcddd71
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174725
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-10-10 10:21:42 +02:00
Noel Grandin
ae44d2affa cid#1607338 Data race condition
move this logic to the destructor, like we do elsewhere

Change-Id: Ie41c78b0a01d79020cb77fd5be70116f473e910f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174747
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-10 09:18:20 +02:00
Noel Grandin
950c4537a6 cid#1607842 Overflowed constant
Change-Id: I11bcbe62181ec85c9d61cb9b4f9d0a3adad92890
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174743
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-10-10 09:18:07 +02:00
Mike Kaganski
5daac16a03 tdf#160580: make cycling from first to last tab configurable
This introduces Office/Calc/Input/CycleNextPrevSheetTab
boolean property, that controls the behavior implemented
in commit 552170c9c8
(tdf#156311 Cycling through tabs in Calc, 2023-08-16).

Change-Id: I0510743b4ab6d92488ba73a7b8d5b83be9586b2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174745
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-10-10 07:49:59 +02:00
Noel Grandin
963255acd4 cid#1608078 Overflowed return value
Change-Id: If654c8c86b71fdf1179f9ea89d31bf6b530e5046
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174744
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-10 07:46:59 +02:00
Noel Grandin
be091490b6 EMPTY_FRAMELIST can be constexpr
Change-Id: I9b43ec53f9d808dd23f05b67248fe96435c649e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174748
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-10 07:46:43 +02:00
Noel Grandin
30d2c8bbde cid#1606594 Overflowed constant
Change-Id: Ie5445a5287de7d1752dd3aefaa2969d92fed6da1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174741
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-10-10 07:45:46 +02:00
Eloi Montañés
12407f0668 tdf#163359: Fix duplication of TSA URLs on Signing Dialog
When using the Signing tab on the "Export as PDF" dialog, the TSA URLs will be
appended to the ComboBox each time a certificate is selected. Thus, if a user
selects a certificate and then another (or the same) is selected the ComboBox
will end up with duplicated values.
This patch moves the code to append the TSA URLs to the function that sets up
the signing page, fixing the problem.

Change-Id: I93d9cb61e10f18b0c33765d63a5ce47c92e588bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174424
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-10-10 07:20:04 +02:00
Oliver Specht
2321626477 tdf#163340 replace list on paste
Pasting paragraph with list should apply the source list to the target
paragraph if the target is empty or completely selected.

Change-Id: I27d462f121c03b6c5625f8c0967bc975d3ac2f88
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174606
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-10-10 01:19:45 +02:00
Miklos Vajna
fe9dab32a3 CppunitTest_vcl_pdfexport2: relax testPdfImageHyperlink a bit
This will start to fail on pdfium-6764 with:
pdfexport2.cxx:4186:Assertion
Test name: (anonymous namespace)::testPdfImageHyperlink::TestBody
equality assertion failed
- Expected: 0.0012626264
- Actual  : 0.0012626261

But the original problem was that the repriprocal was just 0.00126. If
we require one less digit, 1/0.001262626 is 792.0001647360343 and
1/0.0012626264 is 791.9999138304095, so the original problem that the
rounded result is 794 points (and not 792) is still tested.

Change-Id: Ia4489625fd25eca971261b14005b10bbf34343eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174724
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-10-09 23:06:26 +02:00
Andrea Gelmini
d70026abf7 Fix typo
Change-Id: I0bb338567bc731fe38bc551e080a9ad60c80f969
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174751
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-10-09 22:42:27 +02:00
Andrea Gelmini
ba432fcd7c Fix typo
Change-Id: Ibafe319dfbbb580228c3d6c761d9507278b2c0c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174752
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-10-09 22:41:42 +02:00
Andrea Gelmini
8f20de4e8c Fix typo
Change-Id: Ia94d191204cee8b21702d03429493d09427d62d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174750
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-10-09 22:41:19 +02:00
Oliver Specht
9400c0cf10 tdf#132274 follow-up fix to Writer zoom options
Applying the zoom value works now as expected. The prior
fix mixed up zoom value and 100% and didn't always apply
special zoom values.

Change-Id: I7cf1f34fca5724eea14339535e7614cfecffdd79
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174688
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Tested-by: Jenkins
2024-10-09 20:15:46 +02:00
Noel Grandin
b09017c578 update to skia m125
Change-Id: I92e2132f79ba9f3d2ec6cb6438e8040eb6cd0e81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174738
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-10-09 19:52:15 +02:00
Noel Grandin
069d53c414 cid#1608473 Data race condition
which requires some care, because these objects are linked
together into a double-linked list, and they call back into
each other.

Change-Id: If5c128918a1ae901ab7789067dc47d30f7415b43
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174705
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-09 19:16:33 +02:00
Noel Grandin
9cf17d841a update to skia m124
Change-Id: I9bb712bdde8d2f2af792af5b439f4789e59f1595
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174720
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-09 18:21:02 +02:00
Noel Grandin
36ba1f15ec cid#1607047 Overflowed integer argument
Change-Id: Ic1b625dec3768fe5a5415b667bef3c32b0c13e8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174709
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-09 17:30:28 +02:00
Mike Kaganski
85d1e6662b tdf#163362: write xlink:href in image:images, image:bitmap-index in image:entry
Those were mandatory prior to commit d367ee2f8c,
and still mandatory e.g. in AOO. Restore writing those, for interoperability
and backward compatibility.

Change-Id: I84f33e13e6bade8b2f2dd0cc5e2e0f4a96d50e84
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174721
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-10-09 15:40:49 +02:00
Rico Tzschichholz
b344877e37 vcl: Use fabs() for double argument
Change-Id: I959786e42dc576cb72411bacccf1b9bd32fbe21d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173626
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-10-09 15:05:00 +02:00
Theppitak Karoonboonyanan
0bf8a64f41 tdf#157811 Swap tooltips for stepped line types of line chart
* chart2/uiconfig/ui/steppedlinesdlg.ui:
  - Correct the swapped tooltips for stepped line types
    "End with horizontal line" and "Step at the horizontal mean".

Change-Id: Ieeff2e71b2e924060fb5ef3fca313c0d0bc2502d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174700
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2024-10-09 15:01:53 +02:00
Gabriel Masei
565b619d57 tdf#160582 Preserve settings saving in csv import dialog
Also, improve detection algorithm by replacing the limit
of 20 lines with a time limit of 500ms.

Change-Id: Iac519b6ebe675b91ce84b900646d9d320ea9ddc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165905
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins
2024-10-09 14:49:11 +02:00
Rafael Lima
2f1dcf01d7 tdf#157519 Implement Sensitivity Report in LpSolve solver
This patch implements sensitivity analysis when using the LpSolve solver engine.

It also adds the infrastructure needed for future implementations in other solver engines via the css::sheet::SensitivityReport struct.

Change-Id: I74c2ed9c6201a0b2ffc29ef612d2b778d11a3bef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173642
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-10-09 14:49:07 +02:00
Noel Grandin
860ec21856 update to skia m123
Change-Id: Ic7687add0fce85b17bf77b003137649bc7be9042
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174703
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-09 13:55:48 +02:00
Noel Grandin
a16a0dc9d2 update to skia m122
Change-Id: Ifdc602fa7007a9352cdd1a654555204955c89317
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174702
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-09 13:55:40 +02:00
Noel Grandin
760ea7ee49 cid#1607822 Overflowed constant
Change-Id: I4794c2393c48121e3e88b6054a60416ccf13b273
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174708
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-10-09 11:12:20 +02:00
Noel Grandin
ac4ea1ad3a cid#1607798 Overflowed integer argument
Change-Id: I561e86e07a61114523cad545646edf24cf50a260
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174707
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-09 11:12:09 +02:00
Noel Grandin
a28f9a8cc2 cid#1607224 Overflowed return value
Change-Id: I62e153936f9f49fb12deee735ec665bad8a23ad7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174706
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-09 11:12:00 +02:00
Xisco Fauli
4a4535300e tdf#163275: sc: Add UItest
Change-Id: Ic1a56c959ec45f3802e8bd6bf02f895c723df2f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174696
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-09 10:13:16 +02:00
Noel Grandin
94738e6def improve ODF sheet saving performance
GetODFSaneDefaultVersion() is surprisingly hot, mostly because it is
called from every ScXMLExport::WriteCell call, so cache it

Change-Id: Ibc54c007f4979315487badc23889eb264b11d4ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174671
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-09 08:26:41 +02:00
Jim Raykowski
9f95e65730 Resolves tdf#161919 Two programatically composed UI strings not suitable
for localization

Change-Id: I20a914d9d158817b7c9605afc1972a91117fb5a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170789
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Jenkins
2024-10-09 07:27:16 +02:00
Justin Luth
0fb23379e6 related tdf#125038 DOCPROPERTY:fix spurious text outside IF field
This builds on top of commit d09336fbdc
(tdf#125038 DOCX import: fix lost MERGEFIELD result inside an IF field,
2019-10-31), and extends it for DOCPROPERTY.

With this, all unexpected content is gone from the paragraph.

[In a previous related commit, I wrote:
Actually this is all somewhat irrelevant since DOCX doesn't import
IF fields at all anyway - they are just left blank.
So AFAICS, we should ALWAYS return false at this point.]

make CppunitTest_sw_ooxmlfieldexport \
    CPPUNIT_TEST_NAME=testConditionalText4

Not surprisingly, there were no existing unit tests that matched
(because I already did a crash-testing assert last year).

Change-Id: I4d737172ee278c07596eaf47e1bc320e4f42be55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174699
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-10-08 20:50:11 +02:00
Patrick Luby
9240debe36 tdf#162843 replace the event's string parameters
When using the Dvorak - QWERTY keyboard, the
event's charactersIgnoringModifiers string causes
pasting to fail so replace both the event's
characters and charactersIgnoringModifiers strings
with this menu item's key equivalent.

Also, fix the following related bugs when using the
Dvorak - QWERTY keyboard:

- When pressing Command-V with a Dvorak - QWERTY
  keyboard, that single event passes through the
  -[SalNSMainMenu performKeyEquivalent:] selector twice
  which causes content to be pasted twice in any text
  fields in the Find and Replace dialog.

- When using the Dvorak - QWERTY keyboard and the
  Command key is pressed, any key events that match a
  disabled menu item are handled in the
  -[SalFrameView noop:].  However, the Dvorak - QWERTY
  event's charactersIgnoringModifiers string can cause
  cutting and copying to fail in the Find toolbar and
  the Find and Replace dialog so replace the event's
  charactersIgnoringModifiers string with the event's
  character string.

Lastly, fix temporarily disabled menu items failing to
be reenabled when a modal dialog closes caused by the
fix for tdf#126638 by returning the last enabled state
set by the LibreOffice code. Apparently whatever is
returned by -[SalNSMenuItem validateMenuItem:] will be
passed to -[NSMenuItem setEnabled:] which can cause
the enabled state to be different than the enabled
state that the LibreOffice code expoects. This results
in menu items failing to be reenabled after being
temporarily disabled such as when a native modal dialog
is closed. So, return the last enabled state set by the
LibreOffice code.

Change-Id: Iae9cc6f1b94484c1529b22ea3a7acdac2009a58b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174462
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2024-10-08 20:31:29 +02:00
Julien Nabet
73c51868a1 Update git submodules
* Update dictionaries from branch 'master'
  to b871dff9e73eefc187b2c979803c619ceccaed3a
  - tdf#163231: fix Italian spellchecking
    
    Change-Id: Ibffcdb66fd062425f1432d948a16a38143186911
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/174672
    Tested-by: Julien Nabet <serval2412@yahoo.fr>
    Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-10-08 19:48:35 +02:00
Noel Grandin
48db2edc95 cid#1608062 Overflowed constant
Change-Id: I03b3cc85b3571806ad87bf678d83e4c89dca8a8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174622
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-08 19:34:17 +02:00
Noel Grandin
c360c2a9a3 cid#1606728 Overflowed integer argument
The problem here is that coverity thinks that ParaPortion::GetLineNumber
can return -1, which it can, but only if things are already broken,
so add an assert tbere.

Change-Id: Iceea035edb49bb3e1e0a39a9b63a9176308346ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174621
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-08 19:34:10 +02:00
Ilmari Lauhakangas
979056319d Update git submodules
* Update helpcontent2 from branch 'master'
  to a786c24008e843c00271cb324bb00563d451d281
  - tdf#162275 Fix typo
    
    Change-Id: If8ae57d1d7a92256ee4b9fef60ca47496d225be4
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/174704
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
    Tested-by: Jenkins
2024-10-08 19:04:01 +02:00
Noel Grandin
de212916cb update to skia m121
Change-Id: Ic3ab29795af11470d4b41a73d02eac1cd56cadb7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174692
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-08 18:59:15 +02:00
Andrea Gelmini
da07be044c Fix typo
Change-Id: Ice1845b319320fa4d9f5c4a5001e411fd54f9377
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174618
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-10-08 17:57:27 +02:00
Noel Grandin
9ecefe3e36 update to skia m120
The following patch appears to be upstreamed now
incomplete.patch.0

Change-Id: I36a4c62928c050ed4f8103a580899cdb3cf237cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174654
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-08 17:57:02 +02:00
Mike Kaganski
53f889780f Reimplement GetSystemDateTime using std::chrono
Change-Id: I15bce244f96a8940df73f4b5933bcb95a547673e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174691
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-10-08 17:10:32 +02:00
Marco Cecchetti
52ad4bb76d fix-up 2 slideshow: provide animations info
wrong node name

Change-Id: I57e91e708e0ec585aee2dd4873b60ab54e6aa8d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174687
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-10-08 15:23:27 +02:00
Xisco Fauli
7a119065fd Update git submodules
* Update dictionaries from branch 'master'
  to 73ca477c42d6a67cfd6bbe819016f4b1b9f4c3ce
  - upgrade Ukrainian dictionaries to 6.5.3
    
    Downloaded from https://github.com/brown-uk/dict_uk/releases/download/v6.5.3/hunspell-uk_UA_6.5.3.zip
    
    Change-Id: I1ff9b5ca99fc855407b4982b202ceb840f8bab23
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/174690
    Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
    Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-08 15:21:01 +02:00
Noel Grandin
0a90ed2524 update to skia m119
the SkImageGenerator patch seems to have been upstreamed

Change-Id: Ic2af62b9479c36394c6c0cf19d1c6f61edfff6b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174653
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-08 14:22:47 +02:00
Mike Kaganski
bbcd4765ee Simplify tools::Time code
Change-Id: I44a61a0ae2f6e2b81cce96ff96418484a611821d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174689
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-10-08 14:05:14 +02:00
Justin Luth
6fe0de9c0b PDFDocument::ReadWithPossibleFixup: clear before reading fixup
Ensure that a read of the pdfdocument
does not use info from failed previous reads.

The result in the problematic documents
was that GetCatalog failed because it was looking
for an m_aTrailerOffset[0] from the failed read,
and thus only empty pages were exported.

I failed to create a clean-room document,
and the single existing unit test that needs a fixup
has the trailer at the same GetPosition,
which replaced the m_aTrailerOffset
instead of creating a second entry.

Change-Id: I470b922323a2b2ebb6d4bbaa58c98f5cc492b750
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174652
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-10-08 14:03:25 +02:00
Miklos Vajna
eb8a5d4630 tdf#134198 sw: avoid losing char pos of anchor point on content copy
Load the 5 pages bugdoc to Writer, notice the image on the last page,
select-all, copy, new document, paste the selection: no image on the
last page.

Given the new document may have different compat flags, this may not be
a bug, but bisect shows this was working before commit
591673d163 (use more SwPosition::Assign,
2022-08-29). Also note that the image in question is anchored to-char
and it has a non-zero content (character) index, that's why it's on the
last page, and not on page 4. The old code kept the content index
unchanged while changing the node index, the new code avoids touching
the nNode member directly.

Fix the problem by still not touching the nNode member directly (to keep
the benefits of the above commit), but explicitly keep the content index
unchanged.

Changing the node index without changing the char index in general is
not safe (the new node may have less characters), but it does work in
this case, and this fixes the regression.

Change-Id: I2a90e4a88608d7435543880f46f09bea21eba48a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174655
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-10-08 13:54:51 +02:00
Caolán McNamara
ada9095716 cid#1607238 silence Overflowed constant
Change-Id: Ibb5bb59e00f6e16ea68ec37aaa8622eecdf9b8c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174685
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-10-08 13:29:51 +02:00
Caolán McNamara
38c47c91ab cid#1607834 Overflowed constant
Change-Id: If09eb49bd8549defe512193817d23e27e565ffdb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174683
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-08 13:29:20 +02:00
Caolán McNamara
ad6dd34fd1 cid#1603632 Big parameter passed by value
Change-Id: I570c5357b2d14f1bfcf88fe1f95021f18c6151cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174682
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-08 13:29:04 +02:00