Quelle ChangeLog Sprache: C
2025- 11- 05 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [ 8ca8d55c161d60284 4f5428fa4b58097424e324e]
Version 25.8.3.2, tag libreoffice-25.8.3.2
2025-11-05 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [534774fc97a57d13884227336ab2ed60acc0fbe1]
bump product version to 25.8.3.2
Change-Id: I2f47b1e30d8c9ee58f3af1c5a55f8fe85bf8da6b
2025-11-05 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [2e51257dc43169dde24cbf0952a039cca96c5272]
tdf#164070 always install en-US UI localization on windows
if en-US is not available, and the user didn't manually configure the UI
language, adding another language (via means of mar updater for example)
can cause that new language being used instead of the language the user
had installed initially since there's no explicit default/fallback.
Since any language that will be added in future is likely to not use a
latin script/will be quite unfamliliar to the user, having en-US to rely
on as a fallback is a much better experience.
The problem occurs on systems where the selected UI language is not
matching the windows language, so for new installations the user has to
go to options and set the language manually. That in turn then will be
an additional safeguard for further updates, since now there's a
language explicitly configured and thus no reason for LO to "guess" what
to use as default.
Change-Id: I67dd9a9ddd9de3ce79eb9144eab06b6f10134c57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193422
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
(cherry picked from commit 51ccb1ead1c94e695489b1c494e4bf611d8b4b5c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193426
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
(cherry picked from commit d74ce83da797b695d6005651f27619eec2077f28)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193430
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-11-05 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [5d7c32c486484ebda0ef782b9d4f513e98ab7835]
update credits
Change-Id: Ic382e9bc69385c1eb704341eefb08183cec8d9df
(cherry picked from commit 2be216b83d7e7755a47575b3233fa287603b6fa8)
(cherry picked from commit bed0442907e5d704e9eab81135ea8eade16448fd)
2025-11-05 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [61eaebe9d8715fa23d065fbb8b863adb2d2fb751]
Update git submodules
* Update translations from branch 'libreoffice-25-8-3'
to 7da0bbf085f28f0bb8f22602c61d91c174dbc739
- update translations for 25.8.3 rc2
and force-fix errors using pocheck
Change-Id: If22a8d2459b5c47ce71348461ec2a1c9da3727f0
(cherry picked from commit d22ab41bb76904ff6bcbe25ab70ba23bced8f58b)
2025-11-05 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [9f487c5074691a45f29e657afe9fa58d55cbdd34]
tdf#114068 allow to translate media control tooltips in navigator pane
tooltips for play/pause/stop/repeat/mute were explicitly flagged as
non-translatable for some reason. There is a media toolbar that has the
same set of controls and there could be a way to share the strings, but
they only are a handful, so not really worth a big refactoring of the UI
files for that.
Change-Id: Ia0e8e2bd664916392049df5cd537d51eb04005d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192873
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
(cherry picked from commit 74e55a3c756c1f3ce540bf7ab575ca40a334172d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192912
Reviewed-by: Martin Srebotnjak <miles@filmsi.net>
(cherry picked from commit dae5ca06276383df0799cf2c92df5e2bb8883be2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193457
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-11-05 Caolán McNamara <caolan.mcnamara@collabora.com> [cd8e1a8b6a863bdbd6917880302e3b770de93be8]
tdf#168672 Closing webdav documents is extremly slow
Change-Id: I9b6c1cbd7ca4c1a8bcce589cbfda5604e66520f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193404
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193428
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-11-05 Caolán McNamara <caolan.mcnamara@collabora.com> [8980b0e5d443f45404b86dbf592ebe2ffb6adc24]
Related: tdf#168672 ; cid#1642989 Wait without held lock
restore the lock at the end of SerfLockStore::stopTicker
SerfLockStore::removeLockImpl calls this, and that is called
by SerfLockStore::refreshLocks in a loop, so if it was unlocked
at the end of the first loop, then its still unlocked on a 2nd
loop.
Probably doesn't matter as there's only a 2nd unlock attempt
if m_aLockInfoMap.empty() which presumably can only happen once.
Change-Id: Iede91b1b4ef9368bcf4e62cb85bf5a0c745e0ba7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189058
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 3f3aed00458d64bf32f5faa25c88f959430dea3a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193403
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193427
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-11-05 Andras Timar <andras.timar@collabora.com> [e5eb1f972f28db0582e11a31387fff05f85d5ba4]
vcl: check mpWindowImpl for nullptr
Change-Id: Ib70e14cd791415f47772b1053200e9bab6925e8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193372
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 4c63a86c88d54db5e69dc8502b6eeffa7f1e4417)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193393
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 5946f67e1db31926af92ea3d0d8eeb58978ea782)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193399
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit bcdd61ad20635e8806993aca311a91c3cfdad6c3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193415
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-11-04 Andreas Heinisch <andreas.heinisch@yahoo.de> [bbd19f18077882d5945063e77f3ae0db3085a934]
tdf#169108 - Create anonymous database range or data
Create anonymous database range or data during the creation of a pivot table. Otherwise, the selection changes to a old autofilter areas and the pivot table cannot be created.
Change-Id: If55b9d1204ab2ce2c3ee9a227bf0dbe1e222dbcb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193096
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
(cherry picked from commit 2a50c7fbb85941a2c50ac01257af36f132b07006)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193137
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 465e7fddb34fe06d9464ee534c79a02dd72707d4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193143
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-11-04 Caolán McNamara <caolan.mcnamara@collabora.com> [c88828e302b811201171df0da50d6876410c89f0]
Resolves: tdf#144343 This isn't used to toggle navigator on/off
but instead contains a SfxBoolItem which specifies if it should
be shown or hidden and ChildWindowExecute takes care of deciding
if that requires Toggling on or off.
Change-Id: I2ad422041bb6f40f5b726111cf5ce35a32c39128
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193339
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 5e32583e755e877fd1eb68049d6f26d54fd939fe)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193360
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-11-04 Pranam Lashkari <lpranam@collabora.com> [9d308f0acc9780906167b6cec436cf22c99fc2b9]
tdf#167126: resume ScInputHandler even if error not displayed
problem:
regression from 72bbb0dd4a368dab2b1bd99917cd07d23a92a3f0
when data validity dialog was not displayed, error function returned early
this caused issue with cell invalid data cleaning and it was not possible
to enter new data in any new cell
Change-Id: I612ea8b9c651afba1095fc14726e5398484207f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193186
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 0b9b82f41a1ff4cbbed6a7148b77cbc3b00c9716)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193355
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit d803223e55e5a762a6916e1c03459d931817ba70)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193358
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-11-04 Pranam Lashkari <lpranam@collabora.com> [9c89b1991e2cccf35a0a53ee5e3580f14e221388]
tdf#168261: resume ScInputHandler even if error not displayed
problem:
regression from 72bbb0dd4a368dab2b1bd99917cd07d23a92a3f0
when data validity dialog was not displayed, error function returned early
this caused issue with cell invalid data cleaning and it was not possible
to enter new data in any new cell
to reproduce:
select data validity as list and also disable error message showing
enter the invalid data in the validity cell
subsequently its not possible to type in any cells
Change-Id: Ia2157ae57ca90dd9365daae7881640a00c3f1216
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193141
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 65ca233db9a39fd251ffac46608bb2714949e894)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193356
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit f60a4baee3852184da95c2947c910b485225d5fb)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193359
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-11-04 Mike Kaganski <mike.kaganski@collabora.com> [0dc4cf8c5a8427b249eff0afb8851b9113b023c2]
tdf#165733: fix leap year detection BCE
lcl_isLeapYear used a simple "is divisible" method to check if a given
year is leap. But that didn't take BCE into account: we use historical
numbering system, where before year 0001 was year -0001; and that year
was leap.
Use comphelper::date::getDaysInMonth for that, which is correct, and
also deduplicates the code. Make sure that years beyond sal_Int16 are
considered an error: they are not representable in css::util::Date,
and comphelper::date::getDaysInMonth takes years as sal_Int16.
Change-Id: I34f1ad4d5d03e05a7cf787f9997b04b1d705b583
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193302
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 97bc8766e297c8d5c22b2f6d4bd7b6d7258782fb)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193314
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
(cherry picked from commit c96933d95f1eee1018f893dfc08d9b5d52891201)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193327
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-11-04 Mike Kaganski <mike.kaganski@collabora.com> [0f23205b390085be25377ff82c1452462e8149bb]
tdf#169147: handle errors creating icu::RegexMatcher
Regression after commit 38f731ff67142a423aa6f46dc3e92d094f86ffb1
(tdf#160478: fix Basic LIKE operator, 2024-04-02).
Change-Id: I4fae01e56cb91d54adba54c3787f576f60f8b1f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193202
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 3ab2560526ba7b745889cf509241ff17d0638cc2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193221
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-11-04 Xisco Fauli <xiscofauli@libreoffice.org> [ea49312254c953f9183c015727a8d8e01aa4bf7f]
tdf#167963: patch upstream fix
See https://github.com/harfbuzz/harfbuzz/issues/5628
Change-Id: I05bffb1d5e291bd2a5f92bb87aa49bd46d9dc6b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193182
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 68822e1bfe0ed83766f4166f8162aacc7e392191)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193199
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-11-04 Caolán McNamara <caolan.mcnamara@collabora.com> [f779d55e8bcefdd9376a94ece6bfef0bda64b213]
Resolves: tdf#165265 don't autoselect a font style
If nothing was originally selected, then don't pick anything and leave
the combobox empty so the search for style feature doesn't add any
not-explicitly selected font styles by default.
Continue to restore a previously selected style, favouring the last
explicitly selected-by-user style.
Change-Id: Iad04d80305029cc3bbe3e8500ced87085645f9f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193160
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit e419d3927b62cbc90bbfd0f893adb268af38afdf)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193171
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
(cherry picked from commit 54aaa6a1e475921573f07d3e5a3a1f22018574bb)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193198
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-11-04 Đoàn Trần Công Danh <congdanhqx@gmail.com> [73b8736a14391fdf6f1310cc226e289333e0cc14]
Fix memory leak with poppler-25.10.0
https://gerrit.libreoffice.org/c/core/+/192743, which fixes ftbfs with
poppler 25.10.0, unfortunately introduced a memory leak when building
with poppler 25.10.0 or later. `pOwnerPasswordStr' and
`pUserPasswordStr' ownership are supposed to be transfered to
`pDocUnique', but is now orphaned.
This change fix that said memory leak.
Change-Id: I545d461c07f033b41a4276665483b44fa401a3bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192645
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 89841fc69446a597b24b978344cd3c8d656aae09)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192934
(cherry picked from commit 1d15201503d2d17ddede4aade0ef4666e64f862b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192948
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-11-03 Caolán McNamara <caolan.mcnamara@collabora.com> [be86af4142151a10a2cd46ff0bff94019c71981d]
tdf#168979 survive broken color percentile scales
Change-Id: I3180d08272fd7355987f63f5379a044d98467cf0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192838
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192845
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192853
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-11-03 Michael Stahl <michael.stahl@collabora.com> [4986c9c9cc556da7c97c3a41157885dcd1fb110a]
libxslt: add patch for CVE-2025-10911
Change-Id: I951aad2bff3911f685f73390e4f42ed29fe49b41
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192444
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
(cherry picked from commit fca876c2c369b26244413fafe506acafb9d3b5bf)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192864
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-11-03 Xisco Fauli <xiscofauli@libreoffice.org> [7d271f90984038127550ae70ac0b0deaee5c1255]
tdf#169015: GetOutlinerParaObject might return nullptr
Regression from
commit 43e511e642a2ce7026b30ea5c212940ff3eb522e
Author: Tibor Nagy <tibor.nagy.extern@allotropia.de>
Date: Fri Nov 29 02:10:21 2024 +0100
tdf#88226 sd: fix cutting off the overflow text on the notes print page
Change-Id: I4e25760afe4bd535d1accf8291f9cbb4457625ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192895
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 9a406c26e8b8d09b99c949192bc731ba6126cef0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192907
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-11-03 Mike Kaganski <mike.kaganski@collabora.com> [25a24b99856a9725567fde096e7e11f0a3539ce4]
tdf#168314: check if xGraphic is empty, not Any
Regression after commit 9d6e1594a298c9d41f3dc64ad80edf4b9868c2e8
(Deduplicate and unify using vcl::GetBitmap, 2024-11-08).
An Any with an empty graphic is not itself empty; such an any caused
the outer check to succeed, and therefore its 'else' branch never
executed, when it ought to.
Change-Id: I97115c7f7dbab4ec54b5e999e4b47ecdc8874e47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193161
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit a8216f500c223797b13976678924b76c5effec65)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193170
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit da6b70633ac6bf78ce0a68022518396a2c650970)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193184
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-11-03 Stephan Bergmann <stephan.bergmann@collabora.com> [1fc462b65dd9656b576de716ceeb223eca4da76f]
Fix presumed | vs. & typos
...introduced in 25e08e4ea0df956f46bd7ef81493fcf5a5c1879c "Resolves: tdf#164920
add scrollbar width to desired size if enabled" and causing
> svx/source/tbxctrls/linectrl.cxx:435:15: error: bitwise or with non-zero value always evaluates to true [-Werror,-Wtautological-bitwise-compare]
> 435 | if (nBits | WB_VSCROLL)
> | ~~~~~~^~~~~~~~~~~~
> svx/source/tbxctrls/linectrl.cxx:576:15: error: bitwise or with non-zero value always evaluates to true [-Werror,-Wtautological-bitwise-compare]
> 576 | if (nBits | WB_VSCROLL)
> | ~~~~~~^~~~~~~~~~~~
Change-Id: I6f77cd30f3b98abb15afb665b336fba13d46ee01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192963
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
(cherry picked from commit ad6e817e38545903f5fbbe11a2dcb033e5affead)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192968
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 656a79ed1365851e7f8b0f3dacb29321c0264b6b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193021
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-10-24 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [96d44dad3c06fe2decfacea5d4dccf4b6e9bdfd0]
update credits
Change-Id: Id71076a39bde8f6c01283e207773f80b3acbb6e2
(cherry picked from commit b65b00d904f8ae1c84c9dbdd9e6629080aee858a)
(cherry picked from commit 216c31600970374b12a5f2aaf6d9f91098e1aa4c)
2025-10-22 Caolán McNamara <caolan.mcnamara@collabora.com> [3a08160072f04e172364115161002699078eaacc]
crash in GetPercentile with empty std::vector first arg
/opt/collaboraoffice/program/../program/libsclo.so
(anonymous namespace)::GetPercentile(std::vector<double, std::allocator<double> > const&, double)
sc/source/core/data/colorscale.cxx:624
/opt/collaboraoffice/program/../program/libsclo.so
__gnu_cxx::__normal_iterator<std::unique_ptr<ScColorScaleEntry, o3tl::default_delete<ScColorScaleEntry> > const*, std::vector<std::unique_ptr<ScColorScaleEntry, o3tl::default_delete<ScColorScaleEntry> >, std::allocator<std::unique_ptr<ScColorScaleEntry, o3tl::default_delete<ScColorScaleEntry> > > > >::operator*() const
/opt/rh/devtoolset-12/root/usr/include/c++/12/bits/stl_iterator.h:1096
/opt/collaboraoffice/program/libscfiltlo.so
ScHTMLExport::WriteCell(sc::ColumnBlockPosition&, short, int, short)
sc/source/filter/html/htmlexp.cxx:923
/opt/collaboraoffice/program/libscfiltlo.so
ScHTMLExport::WriteTables()
sc/source/filter/html/htmlexp.cxx:864
/opt/collaboraoffice/program/libscfiltlo.so
ScHTMLExport::WriteBody()
sc/source/filter/html/htmlexp.cxx:699
/opt/collaboraoffice/program/libscfiltlo.so
ScHTMLExport::Write()
sc/source/filter/html/htmlexp.cxx:313
/opt/collaboraoffice/program/libscfiltlo.so
rtl::OUString::operator=(rtl::OUString const&)
include/rtl/ustring.hxx:586
/opt/collaboraoffice/program/../program/libsclo.so
ErrCode::IgnoreWarning() const
include/comphelper/errcode.hxx:102 (discriminator 1)
/opt/collaboraoffice/program/../program/libsclo.so
rtl::OUString::~OUString()
include/rtl/ustring.hxx:546
/opt/collaboraoffice/program/libmergedlo.so
TransferableHelper::SetObject(void*, unsigned int, com::sun::star::datatransfer::DataFlavor const&)
vcl/source/treelist/transfer.cxx:912 (discriminator 1)
/opt/collaboraoffice/program/../program/libsclo.so
ScTransferObj::GetData(com::sun::star::datatransfer::DataFlavor const&, rtl::OUString const&)
sc/source/ui/app/transobj.cxx:395
ScColorScaleFormat::CalcValue is optimized out, but it has to be
case COLORSCALE_PERCENTILE and getValues() must return an empty vector
Change-Id: I2cf09f19edcb5f30c82eca02e2a0fe95e86c78db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192823
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192837
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192844
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192852
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-22 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [68e15c9e131377b92e9a2f166cdcb9e17b44aad6]
bump product version to 25.8.3.1.0+
Change-Id: Ib6fd97222de796d78a8cfc6fc3b2df08aaaa070d
2025-10-22 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [025d9ad90aee99dfa9f2c99d9e302d0442c1542b]
Branch libreoffice-25-8-3
This is 'libreoffice-25-8-3' - the stable branch for the 25.8.3 release.
Only very safe changes, reviewed by three people are allowed.
If you want to commit more complicated fix for the next 25.8.x release,
please use the 'libreoffice-25-8' branch.
If you want to build something cool, unstable, and risky, use master.
2025-10-22 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [a366c2e4aa71a416411ae0c40347ccf6f6ddcdaa]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to 17df49cf269a1e1917dc5d4347db00a3dd92bab0
- update translations for 25.8.3 rc1
and force-fix errors using pocheck
Change-Id: Ie174d7556325e998d0f7a2e9eb3bfcc9bb93ea6f
2025-10-22 Caolán McNamara <caolan.mcnamara@collabora.com> [b77b59adca898565b88b38a0d5b6b51fcda52f1b]
Resolves: tdf#164920 add scrollbar width to desired size if enabled
Change-Id: Ib6e354d5a4a9076b81e6a26fe78bdd4994024ec1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192755
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 25e08e4ea0df956f46bd7ef81493fcf5a5c1879c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192810
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-10-22 Michael Weghorn <m.weghorn@posteo.de> [fa68edb7bbe54c71b7c9507412b1812d2c20b0ff]
a11y: Set mnemonic-widgets in password dialog again
They were dropped in
commit 1791a290a82591d5b0609502e86f07ed69acee5c
Date: Sun Mar 9 13:27:57 2025 +0530
tdf#146947 Add show/reveal toggle to "Set Password" dialog
for no apparent reason, resulting in the Orca
screen reader no longer announcing the text
of the label that describes what the entry
is for.
Example to trigger the dialog:
* start Writer
* "File" -> "Save As"
* check the "Save with Password" checkbox
* hit OK button
Change-Id: Ifbb9c6e69254cf5f9439fcfd5347e845ba09f96a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192820
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
(cherry picked from commit 8ceea0574dbfd84d06ec367c44454e69a1ec5af3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192828
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-22 Xisco Fauli <xiscofauli@libreoffice.org> [9394454f9e79634d31562e26eb5d1fc868419f3f]
nss: upgrade to 3.117
Downloaded from https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_117_RTM/src/nss-3.117-with-nspr-4.37.tar.gz
Change-Id: If381a7686a6d3db93e45778855ec74ee90be426b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192799
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit b168b52022d59e79dc2c3a9ebdb1b8b968b9c3e2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192804
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-10-22 Xisco Fauli <xiscofauli@libreoffice.org> [225263fb51e19032a0aa0fef93778308df648898]
python3: upgrade to 3.11.14
* Add external/python3/setuptools.patch.1 to deal with the space
in Lib/setuptools/_vendor/jaraco/text/Lorem ipsum.txt
Downloaded from https://www.python.org/ftp/python/3.11.14/Python-3.11.14.tar.xz
Change-Id: I0fe4730ee26267e0042fb10b6ad78bbc21ca1ce5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192784
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-10-22 Xisco Fauli <xiscofauli@libreoffice.org> [1e667fa90e602b89fa3d198897aa85c7cdd01cea]
glm: upgrade to 1.0.2
Downloaded from https://github.com/g-truc/glm/archive/refs/tags/1.0.2.zip
Change-Id: I07b5bc3a63d0dbe196b38f81ef9329ac44c962cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192781
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit a6080387f85b0018c31060b05e0d223e1541e0f4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192794
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-10-22 Xisco Fauli <xiscofauli@libreoffice.org> [a96851ee7e3201d719a032d0f85c064eaa7a269e]
poppler: upgrade to 25.10
Downloaded from https://poppler.freedesktop.org/poppler-25.10.0.tar.xz
Change-Id: I05f89f4177312a148a5a15cd1f1b206d1dc01a86
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192743
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit ae83e577501c504f89b434606f05ff1d555729c9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192754
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-10-22 Xisco Fauli <xiscofauli@libreoffice.org> [c6315f9834a446b9d2ba831ac53781cc7bd5546e]
libgpg-error: upgrade to 1.56
Downloaded from https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.56.tar.bz2
Change-Id: I6aeb7723e94cffe6bdcad8cd6af74891210c4d26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192709
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 802328a6055106d4bf1ecaba6db1b6cc473b96fd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192741
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-10-22 Mike Kaganski <mike.kaganski@collabora.com> [e6875a474b394a9d01bd6c05414d8e704f8bb29a]
tdf#168980: don't use shape Z-order to identify shapes
The problem was wrong identification of the shape type, because of
unreliable use of fragile Z-order.
XMLShapeExport::exportShape used xShape's Z-order to get the info
collected for current xShape. Value of Z-order is calculated in
SwXShape::getPropertyValue; it takes into account text boxes of
shapes, which affects the correction in SwTextBoxHelper::getOrdNum.
The correction results in several different objects returning the
same Z-order. And in the specific document, the information that
was collected for a rectangle object, was used for an object of
different type.
Instead of trying to find a smart way to continue using Z-order,
this change uses XShape itself as the key into the map of info,
similar to how XShapes objects are used as keys into ShapesInfos.
Change-Id: Iacbc101623504db4290ad2c283351c4141b2d1b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192796
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 0dc93fddcc751a28cfdb936f61bb6f0f4812e4b9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192805
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-21 Khaled Hosny <khaled@aliftype.com> [0704f03eca87491f87381a2fa995f1920bb19151]
tdf#168884: Restore missing transparency in EMF files
Revert unrelated changes from:
commit 1bdf1e2d52a7fae3e1a58ddf15a7657df3d47004
Author: Khaled Hosny <khaled@aliftype.com>
Date: Thu Sep 25 16:33:09 2025 +0300
tdf#168371: Disable ligatures in Impress/Draw with character spacing
I added a new parameter to TextSimplePortionPrimitive2D constructor, and
rTextFillColor that previously was using the default value had now to be
explicitly set, but I should have used COL_TRANSPARENT as that is the
default.
Change-Id: Ie51e8f3f4c68a9539eb3f6cc77fb1e6cf44f673f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192779
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 1dce54d8fb070d3d4134317612c145a923497bb4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192788
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-21 Aron Budea <aron.budea@collabora.com> [30ca1deeebbdb3cf69816fe65401d91e36596717]
tdf#168885 oox: save more of empty charts
Otherwise Word will complain.
Affected types: area, bar, bubble, line, stock.
Regression from 3b4c11350a631e27345e87ecfe258d12983cbfbc.
Change-Id: I56d533d9c55bae45240a1b51733ff60f47b1b2e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192483
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192782
2025-10-21 Miklos Vajna <vmiklos@collabora.com> [7afa99daab032723aabdeea00d6d69cf97928434]
tdf#166319 sw interdependent redlines: fix redo of direct reject for format
Open the bugdoc, select the format part of the insert-then-format
redline in the manage changes dialog, reject, undo, redo: the result is
<ins>AAA</ins>BBB<ins>CCC</ins> instead of one big insert redline.
Similarly, open the other bugdoc with a delete and a format redline in
it, select the format part of the delete-then-format redline in the
manage changes dialog, reject, undo, redo: the result is
<del>AAA</del><format>BBB</format><del>CCC</del> instead of one big
delete redline.
What happens is that the UI action uses
sw::DocumentRedlineManager::RejectRedlineRange(), while the redo uses
sw::DocumentRedlineManager::RejectRedline(), and while the first
supported direct accepts, the later did not.
Fix the problem by:
1) In sw::DocumentRedlineManager::RejectRedlineRange(), create the undo
action with the correct depth & directness for direct rejects
2) In DocumentRedlineManager::RejectRedline(), use use
lcl_RejectOuterFormat() to directly reject a format redline instead
of the usual lcl_AcceptRejectRedl(), which gives us matching behavior
for the UI action & the redo.
Writer's interdependent redlines are now in a reasonable state with
this: actions for the redline under cursor work with ins/del when
possible (looking "through" format); while the manage changes dialog
still allows working on the format redline directly if that's wanted.
Change-Id: Idb90dfbd86ac26ff51da8a34731ea75a48748bdf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192015
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192736
2025-10-21 Miklos Vajna <vmiklos@collabora.com> [fbec8ab124b58779567e14428238136baa1e84d6]
tdf#166319 sw interdependent redlines: fix redo of accept for fmt on ins/del
The bugdoc has <ins>AA<format>BB</format>CC</ins> content, accepting the
BB part "directly (via the sidebar or the manage changes dialog, so you
accept the format, not the underlying insert), then undo, then redo
resulted in <ins>AA</ins><format>BB</format><ins>CC</ins> instead of a
single insert, as expected.
What happens is that the UI action uses
sw::DocumentRedlineManager::AcceptRedlineRange(), while the redo uses
sw::DocumentRedlineManager::AcceptRedline(), and while the first
supported direct accepts, the later did not.
Fix the problem by:
1) Extending SwUndoRedline with a flag to know if the accept/reject to
be performed by redo should be a direct action or not
2) Fixing sw::DocumentRedlineManager::AcceptRedlineRange() to create an
undo action with the correct depth (should be 0, was 1) & save the
direct flag into the undo action
3) In sw::DocumentRedlineManager::AcceptRedline(), use
lcl_AcceptOuterFormat() to accept a format redline directly instead
of the usual lcl_AcceptRejectRedl().
This also fixes the case where you have a format on top of a delete
(instead of an insert).
Change-Id: I78d7ae9eebf8525191a3d9b3a1731d80ad04a75b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191960
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192735
2025-10-21 Miklos Vajna <vmiklos@collabora.com> [772189ecaca99338672d94aeb1f34abb836b7f3e]
tdf#166319 sw interdependent redlines: allow accept/reject for fmt on ins/del
When a format redline is on top of an insert/delete and the uno command
is dispatched to accept/reject the redline under cursor, then we always
interact with the insert/delete, ignoring the format. This is usually
wanted, but now there is no way to interact with the format redline,
even if you would explicitly ask for it.
Notice that the manage changes dialog/sidebar has a separate row for the
format redline and the ins/del redline under it (at the same document
model position), so that gives us a way to select the format redline
explicitly and interact with it.
Implement this by adding a "direct" mode to the edit shell's
AcceptRedline() / RejectRedline().
With this, all of the (insert or delete) then format, (accept or reject)
on it case works in direct mode. Undo also works, redo still needs
fixing.
Change-Id: I7947cd6c7264773d51e63ccd7c45acb001a79d88
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191592
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192734
2025-10-21 Jim Raykowski <raykowj@gmail.com> [55d72acdba8e55ff44da1534d7c9426fc89a6063]
tdf#168929 fix cannot rename objects with CJK languages via Navigator
Change-Id: I11fa5106d63b78a4aacb144ed70ac658607611a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192704
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
(cherry picked from commit 4f053ee1b55faa9deec3cbf7cb88f265458b20e0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192739
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-20 Mike Kaganski <mike.kaganski@collabora.com> [b2947edc956ebd42b994ff08a96ec0fa43a2ec90]
tdf#164677: separator properties in XMLTextColumnsPropertyHandler::equals
When collecting autostyles, each added autostyle is compared with the
already added ones. If all the properties match, new autostyle is not
added, but an existing one is used.
For text columns, the comparison procedure only compared things defined
in XTextColumns interface, and ignored all properties of TextColumns
service - so, styles only differing in those properties were considered
identical, and only the first of them was saved and used for all cases.
This had never been implemented properly; all versions I tested, did the
same, so I doubt it was a regression. But indeed, it was a bug.
Change-Id: I0042067499a904a66ffb10b4f4ce4115d86e6cfb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192639
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192684
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-20 Xisco Fauli <xiscofauli@libreoffice.org> [fbb1d7bcba219685d789c2f4cdf348f8f7f8d696]
related tdf#168511: bundle venv on mac too + Add test
I missed it in
commit dd8c42bf4b6eb5f692bb929547f69a9aedcf6c0c
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date: Tue Sep 23 10:07:26 2025 +0200
tdf#168511: python3: bundle venv
Change-Id: I180df8df27ece92aaa1feca379d280ff3f1ba2de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191392
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191398
2025-10-20 Xisco Fauli <xiscofauli@libreoffice.org> [ecda1df6a14e99d5713309b786ff9137dda4767e]
tdf#168511: python3: bundle venv
Change-Id: I5d4b03571099486b981f83b0487cdcbc4dd7a1a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191377
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit dd8c42bf4b6eb5f692bb929547f69a9aedcf6c0c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191386
2025-10-20 Justin Luth <jluth@mail.com> [92307cad6a66f4fc891f566b9a40832971b198f4]
tdf#162461 Revert "tdf#129924 docx import: set background color"
This reverts 6.4.1 commit 9476dfe7d1b86b367966e7dedf67e11936c8d9d7
Automatic font-color needs to be exported as automatic,
not some hard-coded value based on some background whatever.
There were lots of fixes related to "highlight" verses "shade"
backgrounds in 7.x, so this hackery would be obsolete anyway.
Change-Id: Ic62fe56c74cffd8c8475befe745e9fb1c227ec1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192518
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
(cherry picked from commit 74063178d58d30706c68003ee8ad8e6053f8df50)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192695
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-20 Mike Kaganski <mike.kaganski@collabora.com> [05d1d307e83431f2e1e649ffe3c1f0854b44d13a]
tdf#168673: approx equality threshold no less than 1/2 15th significand
01:26,47 is 0.001000810185185185, which has 16 significant decimals. It
is converted to string as "0.00100081018518519" (15 significands).
The problem was, that when criterion "=0.00100081018518519" is used to
check value 0.001000810185185185, the two numbers differ in five least
significant bits, but rtl_math_approxEqual uses 0x1p-48 to ignore last
four bits only. This is a common problem for numbers close to 1.0E(N).
This change introduces a second threshold, in addition to "only take
into account 48 signigicant bits of mantissa": it calculates the value
of half of 15th decimal unit of the smaller absolute value, and uses
the greater of the two thresholds for the approximate equality.
Change-Id: I2f98ab23c94ca3a2949c3762fbfb6ea563eef94b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191883
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit d32c664c3df302b7107a70858aa55b11601225cf)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192696
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-20 Miklos Vajna <vmiklos@collabora.com> [e2b2ecad7a0ffdf1e0c34ec70c1987698971cbad]
tdf#165615 sw floattable, no overlap: avoid check against an own follow
Load the bugdoc, the layuot loop control kicks in:
warn:sw.layout:20117:20117:sw/source/core/layout/tabfrm.cxx:1853: LoopControl in SwContentFrame::CalcLowers
and then the content is laid out on 3 pages, while it fits 2 pages in
Word.
What happens is that the document has an inline table, then a floating
table inside that. The inner floating table has tblOverlap set to
'never', and then things go wrong in
SwToContentAnchoredObjectPosition::CalcOverlap().
Fix the problem by checking if the two overlapping fly frames are
actually next to each other in a split fly chain: if we're the precede
of the other fly, then no need to worry about the overlap, that follow
fly will move to the next page anyway.
In theory this would be also interesting for toplevel floating tables,
too -- but in practice CppunitTest_sw_core_layout's testSplitFlyHeader
shows doing this in general would need more work, so just do this for
floating tables which are inside tables.
Change-Id: I4d0f1bd5229f8fbc3bb49af57f88fd6ef911cbfe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192433
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 72e79a4d75cbbc8615fe9815bbbe9a38780ff856)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192717
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-20 Miklos Vajna <vmiklos@collabora.com> [153a8942c7c9070dbcbb398d90f126ea5ba1a775]
tdf#162730 sw floattable: fix when inside an inline table, with hide mark
Open the bugdoc, it has an outer inline table, then an inner floating
table. The inner table is split, but both parts of it stay on page 1,
leading to overlapping text.
This document's outer table has a single row and a single cell, but the
cell has a <w:hideMark> property. If that's missing, the inner floating
table is split properly.
Fix the problem by ignoring <w:hideMark> in case the cell's only content
is a floating table: in this case setting the row's size type to "fix"
would not be correct anyway.
Regression from commit 2d43c34333076fad092f0cdc0f60f81580acdbee
(Related: tdf#55160 sw floattable, nested DOCX imp: fix inner tbl at
cell start, 2023-09-15).
Change-Id: Ia9759a1c8ebaaa22b547a5ff250fa9dcf7ffbe4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192512
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 25ab6816990b688bf12004280664fb3810996f1c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192716
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-20 Mike Kaganski <mike.kaganski@collabora.com> [80850b7d086e2b0fc7f792130cce951d5d946573]
tdf#167326: Let CalcHeightWithFlys take hidden frame state into account
Table cells use that function to calculate the min cell height. In the
bugdoc, sections inside a cell contained flys, and were hidden. When
the min cell height was calculated, the sections' flys were considered,
despite they were hidden.
Change-Id: Ie5a8fb54a1c9fe21cc5f4d474bd24feabb660330
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192232
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 0ba44065385cbee7c490cf4a97641c19edc79a63)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192713
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-20 Mike Kaganski <mike.kaganski@collabora.com> [58561ba4dea22e59b7a7fb36170d574cbbcae936]
tdf#168817: don't emit hyperlink markup for Ruby portions
It produced incorrect markup like
<text:a ...><text:ruby ...><text:ruby-base>...</text:a></text:ruby-base><text:ruby-text>...</text:ruby-text></text:ruby>
after commit c50fbdceafdd4b857954f098e38cae03e8bc6064 (tdf#148198: merge
identical hyperlinks of adjacent text ranges on ODF export, 2022-07-18).
Only the inner Text portions need an 'a' element.
Change-Id: Ia5a0b671b5d454b0e9d4dab0295b57249db9f4dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192249
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192683
2025-10-20 Mike Kaganski <mike.kaganski@collabora.com> [1aac67235256b90479de733d178bfe6a955a1888]
OUStringLiteral -> OUString
Change-Id: I124ab59b49493a0ca8b052b6f7c0347fae64e765
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192252
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192729
2025-10-20 Jonathan Clark <jonathan@libreoffice.org> [768b67b1b727d93134dba1efd624000b57b653a2]
tdf#166044 sw: Fix cont. footnotes repeating the dest page number
Fixes an issue causing Writer to print the destination page number twice
in footnotes with continuation notices that end in non-Latin text.
This was happening due to subtle mismanagement of the m_bHasFollow flag.
Continuation notices rely on this flag being unset to indicate the field
portion responsible for printing the destination page number, but the
layout algorithm was leaving this flag unset on two different portions.
In Latin-only documents, this bug was hidden by SwLineLayout::CalcLine()
removing the second portion, but this isn't possible when a script
change is involved.
Regression since commit 6c0105307efa15837e9e5287103995312f373b67
(sw: fix stale SwNumberPortion follow flag)
Change-Id: I94c6f7ca75a3cf844d3eff2640d63777ac026717
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192464
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
(cherry picked from commit 23a0a5d5d2d004c85e6230040d4d1475e79f48fc)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192726
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-20 Justin Luth <jluth@mail.com> [482871586febdea7d5ccef815f8ad33ffb40c095]
tdf#157365 sw: apply colorConfig change to SwModule
This fixes a 7.6 regression from
commit 1916d161902bdd52b8cfa5b29153c8f8c39fce52.
Changes made were not immediately applying to new documents,
and perhaps not even to the current document
if the user also looked at SwModule options.
Change-Id: I5fa21cac57ab1bbfc96b9d6d2b7f403b32103e84
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192410
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
(cherry picked from commit 2b0bc0ed83cc0ec03ea30570dc7538df22f303b1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192724
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-20 Mike Kaganski <mike.kaganski@collabora.com> [aa690147e302325bfbdc44c1fada42e7c59966e5]
tdf#168777: Trailing space must show all decorations, also for ODF
Commit 853e13f9146e83b959bc53152ec103470d55fb4f (tdf#57187: make sure
to put trailing blanks to hole portion in narrow lines, 2023-12-30)
caused a regression, where trailing whitespace lost its decorations.
Commit a877c6ce97f73906c39cf800bc61d7d99847361c (tdf#164487: Introduce
"Show underline" MS Word compatibility option, 2025-02-26) took care
of the Word compatibility case, and introduced a compatibility flag
matching respective flag in Word. It only handled underline, as the
flag name in Word implied.
It turns out, that (1) Word's flag, despite its name, controls all
decorations of trailing writespace (highlignting, strike-out); and
(2) before the original commit, Writer's default was to show all the
decorations as well. Which means, that there is only one case when
the decorations must be omitted: if "Word-compatible trailing blanks"
is enabled, but "Underline Word-compatible trailing blanks" is off.
This change is intended to show trailing space's underline, overline,
strike-out, border, and highlighting correctly.
Change-Id: I68d0aaaa0a7b9610ec817728bd4acad92ef26fe1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192191
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit b36f181bb71c395f9c48c6358bea550ac4767839)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192712
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-20 Jonathan Clark <jonathan@libreoffice.org> [13c6bc02d4c60e6aa35ae2145db431cfe8ae6dba]
tdf#72341 sw: Make inc/dec font size affect all scripts
This change updates the FN_GROW_FONT_SIZE and FN_SHRINK_FONT_SIZE
handlers to scale fonts for all script types, even if the
currently-selected text does not contain a particular type.
This fixes the reported issue that bullets in RTL context are not
resized if a selected list item does not contain CTL characters. This
also fixes the broader issue of inserted text not reflecting earlier
size changes, simply because the script type for that inserted text
wasn't present at the time.
Change-Id: I881f0b90b5c3aecbbf2e40ee2ad6758de9c5bad3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192459
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192725
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-20 Aron Budea <aron.budea@collabora.com> [2c0f2c55ab43f39e54e8df9164665dd7544d8658]
tdf#168921 sw: don't export user fields with empty names to DOCX
Otherwise Word will complain.
Started from ae5f469d3893de73850ccc369dbf426a4acd8f15.
Change-Id: I223bcea33645e02972bc189eef0b913fc19b3b48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192583
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Jenkins
(cherry picked from commit bd01fe073f0ef0eae54f6e9a6d4ecce68171d1c9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192691
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-20 Mike Kaganski <mike.kaganski@collabora.com> [05a0f70a417dbe71ca7b580d6e62c0a7977a0c72]
Some DDE fixes
It seems that some DDE code was virtually never tested in our CI.
That resulted in several unnoticed regressions.
In commit 81b954718f0cdac6873927e869b3e41f863562e7
(loplugin:unnecessaryvirtuals, 2015-06-09), DdeService::MakeTopic
was made non-virtual. That broke its use on Windows, where a derived
class used to override that method (which of course didn't use the
'override' keyvord, hence went unnoticed).
In commit 88e3b846b8a4bd4ce5507d1bc5441ee4167e5326 (remove some dead
bits of DDE, 2016-04-06), DdeService::MakeTopic was finally dropped.
In commit c026b936404bd052fc74283d3cc2e0727ec4edb9 (no need to
allocate SfxDdeDocTopics_Impl separately, 2023-02-28), a check in
SfxApplication::AddDdeTopic was changed from testing if pDocTopics
were initialized to checking if they are empty. The new test made
adding anything to the vector impossible.
This change tried to make it functional again, and adds a (Windows-
only) unit test.
To enable unit test, we need an app name, so that DDE is initialized
properly. Also, ImplDdeService::MakeTopic had a condition to exit
early, when !Application::IsInExecute(). Here we allow to add it, if
unit test is running.
SfxDdeDocTopic_Impl::Put ismodified to store OUString to the Any -
see ScByteSequenceToString::GetString. Without the change, UTF-16
was treated as 8-bit-encoded string.
theDdeInstData in svl/source/svdde/ddecli.cxx is now not a pointer,
bus a function-local static. No need to delete it: it has nothing
that needs to be released. Before, it could get destroyed too early,
preventing DDE from working.
DdeConnection::~DdeConnection could reliably deadlock, when it had
a connection to the server in the same process; processEventsToIdle
is called now to avoid that.
DdeData ctor taking OUString is fixed: xImp->nData is bytes, not
characters.
Change-Id: I9a151eebc65a26b76c9f6134e97cd1f4d2e2b615
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192640
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192690
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-20 Miklos Vajna <vmiklos@collabora.com> [7e0713ad8a2b06c9ffd5b5d83b2a28fe1d7012a4]
sc: fix crash in SparklineGroupsContext::onCharacters()
Fixes this assertion failure in a crash report:
/opt/rh/devtoolset-12/root/usr/include/c++/12/bits/stl_vector.h:1230: constexpr std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::back() [with _Tp = oox::xls::Sparkline; _Alloc = std::allocator<oox::xls::Sparkline>; reference = oox::xls::Sparkline&]: Assertion '!this->empty()' failed.
Backtrace from gdb on the core:
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007f906206e7f1 in __GI_abort () at abort.c:79
#2 0x0000000000af43ee in std::__glibcxx_assert_fail(char const*, int, char const*, char const*) ()
#3 0x00007f904d07ff87 in std::vector<oox::xls::Sparkline, std::allocator<oox::xls::Sparkline> >::back (this=<optimized out>)
at /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/stl_vector.h:1228
#4 std::vector<oox::xls::Sparkline, std::allocator<oox::xls::Sparkline> >::back (this=<optimized out>) at /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/stl_vector.h:1228
#5 oox::xls::SparklineGroupsContext::onCharacters(rtl::OUString const&) ()
at sc/source/filter/oox/SparklineFragment.cxx:232
#6 0x00007f905cf0988a in oox::core::ContextHandler2Helper::processCollectedChars() ()
at include/rtl/ustring.hxx:546
#7 0x00007f905cf09a05 in oox::core::ContextHandler2Helper::implEndElement (nElement=3475622, this=0x7f902403e880)
at oox/source/core/contexthandler2.cxx:123
gdb also points out that m_aSparklineGroups is non-empty.
Change-Id: Ib368550f6db0ed7ce4fbe37e056cd416208e7fe9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192424
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit cde426b7dbea32f93607130d13f108330a8b6275)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192721
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-20 Miklos Vajna <vmiklos@collabora.com> [7422b7b60631f0f43fad7781d9f4b0e7fb5a4fb8]
sd: fix crash in SdDrawPagesAccess::remove()
Crashreport signature:
> kit-1853625-1853625 2025-10-05 16:19:13.871457 +0000 [ kitbroker_02b ] SIG Fatal signal received: SIGSEGV code: 1 for address: 0x100
...
> program/libmergedlo.so
> SdrUndoPage::SdrUndoPage(SdrPage&)
> svx/source/svdraw/svdundo.cxx:1308
> program/libmergedlo.so
> SdrUndoDelPage::SdrUndoDelPage(SdrPage&)
> svx/source/svdraw/svdundo.cxx:1383
> program/libmergedlo.so
> std::_Head_base<0ul, SdrUndoAction*, false>::_Head_base<SdrUndoAction*&>(SdrUndoAction*&)
> /opt/rh/devtoolset-12/root/usr/include/c++/12/tuple:200
> program/libsdlo.so
> SdDrawPagesAccess::remove(com::sun::star::uno::Reference<com::sun::star::drawing::XDrawPage> const&)
> sd/source/ui/unoidl/unomodel.cxx:5181 (discriminator 4)
and gdb on the coredump says:
> #5 0x000070373442496a in SdDrawPagesAccess::remove (this=0x6caee6e0, xPage=...)
> at /home/collabora/jenkins/workspace/build_core_co-25.04_for_online_snapshot/sd/source/ui/unoidl/unomodel.cxx:5181
> 5181 rDoc.AddUndo(rDoc.GetSdrUndoFactory().CreateUndoDeletePage(*pNotesPage));
> (gdb) print pNotesPage
> $5 = <optimized out>
> (gdb) down
> #4 SdrUndoFactory::CreateUndoDeletePage (this=<optimized out>, rPage=...) at /home/collabora/jenkins/workspace/build_core_co-25.04_for_online_snapshot/svx/source/svdraw/svdundo.cxx:1763
> 1763 return std::make_unique<SdrUndoDelPage>(rPage);
> (gdb) print &rPage
> $6 = (SdrPage *) 0x0
so check for the case when pNotesPage is nullptr.
Change-Id: I1033d5196b329cb648fd27ac2633833a723f47a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191948
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 81c26f3c3f9c3b3672b6bbc34605d121ffaa1b72)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192718
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-20 Miklos Vajna <vmiklos@collabora.com> [8acfabf1f8bbb444d4fc3275a897da0aa0830e5e]
tdf#168688 DOCX import: fix missing char props in field in header in ToC
Regression from commit 6ee33d0772f991f04e97b5b61d7b11810a1b8ac0
(tdf#104079 RTF import: fix handling fields inside TOC fields,
2017-10-17), open the bugdoc, check the font size of "TEST" in the
header, it should be 24pt, but it's 12pt.
What happens is that the document ends with the table of contents DOCX
field, so the section properties at the end of the document (including a
reference to a header) get parsed while the ToC field is still open, so
we think that m_xTOCMarkerCursor is in use, but it's for the body text
and we're in the header, so it's not relevant.
Fix the problem by moving m_xTOCMarkerCursor to m_StreamStateStack,
where all state that should be stashed away & restored later belongs.
This way the old tdf#104079 use-case keeps working and the new use-case
gets fixed.
Interestingly this xTOCMarkerCursor is not actually used as a cursor
anymore and it just indicates if we're inside a ToC or not, but leave
that unchanged in this commit.
Change-Id: I1d1c9f55413d94dcde9e7c715bc9f9863f354dcb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192392
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 86d0a2f84d714da67d83fdba652540ebe1027382)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192720
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-20 Mike Kaganski <mike.kaganski@collabora.com> [8a8cf61700d08e166ff206f2d291a16f5f6662ee]
tdf#167676: do not run updater tasks in headless mode
Also reorder conditions to only check environment variables after normal
registry settings.
Change-Id: Idac6d7135da366dabf9285310d445925e9e4d1a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192113
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 02f93a9d1763336eb655ec13d1cfd1e114246b34)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192711
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-20 Mike Kaganski <mike.kaganski@collabora.com> [fb8332fd4ac068835ba3a6557e8a67c5a5006559]
tdf#167143: set text of the correct row
Regression after commit 00e2762c664614a1b33f54dfc990ba29f0f81a07
(Drop uses of css::uno::Sequence::getConstArray in cppuhelper ..
cui, 2024-04-29).
Change-Id: I9544160ee3857c3ef8322c85529f5ff6a4ce0e2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192055
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit f5cd16a252a73a3e594fc19eba365c52ec987fbb)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192710
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-20 Justin Luth <jluth@mail.com> [1b6d78398021ebaf59b7d1d3579aab1ba2242d1e]
tdf#114343 titlepage: DoSpecialInsert (Alt-Enter) when necessary
If the document starts with a TOC or a table,
then the title page wizard (Format - Title page)
fails to (properly) insert a page before.
(note that while it DID insert a page before the TOC,
that para-with-page-break is all still "part of the TOC"
and so when the TOC is refreshed, the page break is lost.)
make -srj1 UITest_writer_tests5 \
UITEST_TEST_NAME=titlePageWizard3.tdf114343.test_tdf114343 \
SAL_USE_VCLPLUGIN=gen
make -srj1 UITest_writer_tests5 \
UITEST_TEST_NAME=titlePageWizard3.tdf114343.test2_tdf114343 \
SAL_USE_VCLPLUGIN=gen
Change-Id: I0eb865259889601c0918096d8dd51fc50d0dca52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191164
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
(cherry picked from commit 932c8227717f44877d77659c444845d39f4156ce)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191356
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-20 Michael Stahl <michael.stahl@collabora.com> [015b61daec58227263bf05defe97a03c92762dc5]
configure: openssl 3.0.18 evidently needs perl Time::Piece
Can't locate Time/Piece.pm in @INC (you may need to install the Time::Piece module) (@INC entries checked: ...) at Makefile.in line 37.
Change-Id: Ia47eeb971f7bf91972f46be46330f10e64682799
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191735
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit 0622d8d160b54b120e3955b6b0e177a2a25ca0d1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191752
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-20 Caolán McNamara <caolan.mcnamara@collabora.com> [8d5da57c259a3a3d09a0118846c75a269bf38cdf]
Threaded import crash in ScDocument::ShrinkToDataArea
since possibly(?) https://gerrit.libreoffice.org/c/core/+/180773
one thread, importing sheet 0, uses ScDocument::ShrinkToDataArea
for a range on sheet 1 while sheet 1 is importing on a different
thread.
Change-Id: Ia982e4c0af4859aacbca19420941f19ee85479eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191920
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 7a6ebc8be8f5df795d1c9e0cca1a740ee2b62b27)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191986
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-20 Mike Kaganski <mike.kaganski@collabora.com> [1ef44db022c76ea28aa63aa3243a8660fb5d061c]
tdf#168723: realloc should create the _correct_ size before access ;-)
This is how commit 36df0b837b398f1011cb6f9fdf978a24125eee89 (INTEGRATION:
CWS os47 (1.3.190); FILE MERGED, 2005-01-28) desctibed the same change
in commitPage. The leftover's time came, just after 20 years.
Change-Id: Id960f84349b8885811ad750d5956965d0ccf47b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191981
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 014612657286b8042580245773934c5a9433503b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192697
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-20 Mike Kaganski <mike.kaganski@collabora.com> [5219ea7b98bb35fc9f4ec39f25ebfafb7346bc25]
tdf#168750: Make sure that class module is recognized on load
The problem appeared, when a macro loaded a library with a class module,
that had a public element (e.g., a function) with the same name, as used
for a local variable in the macro without a prior DIM.
Normally, there is a precaution in SbModule::Find, which hides the names
in class modules. However, this precaution failed during load.
The reason was, that the flag identifying the module as a class module
was set only when the module got compiled. It turned out, that first, it
is parsed in SbModule::SetSource32 only partially, with minimal work to
recognize the names (and a few other small things). At this stage, it is
not marked as class module yet; and when the clashing name is looked up,
it gets found in the module. Then its value is requested; at this point,
the module gets compiled, and the "class module" flag is set; then, if
the class module element tries to use another name from the same module,
it fails, which produces visible error message.
This change makes sure, that the initial fast parse stage also checks
Option ClassModule, to set it properly. Also it drops redundant variable
bIsProxyModule from SbModule, because mnType already contains the needed
type information. And lastly, it reorders SbModule::Find a bit, to avoid
searching a module, only to discard the result immediately, because it's
a class module.
Change-Id: I8add9873bf31fb767b64d27a36aef8e3a89a0de0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192075
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192689
2025-10-20 Miklos Vajna <vmiklos@collabora.com> [0ca27b0abb86898effe7d28d1e7786aa8027cd33]
xmlsec: upgrade to 1.3.8
Downloaded from
<https://www.aleksey.com/xmlsec/download/xmlsec1-1.3.8.tar.gz>.
Remove 0001-const-up-xmlSecErrorsTable.patch, which is upstream already.
Change-Id: I633ed7ecc90b8d798aa9ae03a4237fda4cf26b47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192476
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit d56e6cc6ec7807155e56bb7c59aabe5f8f885beb)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192688
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-20 Aron Budea <aron.budea@collabora.com> [8602573b3b9509702d8df15128488e032e825c6e]
tdf#168754 sd: escape comments exported to PPTX
Change-Id: Ic0574980ec3d837f7747aaeb54fb8925aff2987f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192072
Tested-by: Jenkins
Reviewed-by: Aron Budea <aron.budea@collabora.com>
(cherry picked from commit 6cab4cb50cf67a8dd595fffa107968cb1bd9fd18)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192083
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-20 Mike Kaganski <mike.kaganski@collabora.com> [2b8c4cdb286102a848a711259089ba87ef08d9ee]
Related: tdf#168842 Don't truncate source precision in vcl::TextToValue
When user enters a value like "2.54cm", and current input box is points,
which has only one decimal digit, it does not make sense to apply that
precision to the input string, making it mean "2.5cm" (and resulting in
70.9 pt).
This change adds a function to convert such strings to double, instead
of sal_Int64; then the double is handled using vcl::ConvertDoubleValue,
as before.
Now entering "2.54cm" produces the expected 72.0 pt.
This needed some OUString->u16string_view for loplugin:stringviewparam.
Change-Id: I5afa4edada904c4d8b8bcd9df65243546cb6bd00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192663
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-19 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [e05e6af1ee3af91ed59da5c30fbd38e12d1f3c37]
tdf#167704 fix gallery themes not using translations
regression from d81808ec15064e7655503253dddb8ebdc58b1b29
it is not substr(startPos, endPos) but substr(startPos, length)
so the code ended up with the whole remainder of the key: 'langCode]'
instead of just 'langCode' and that broke the lookup.
Change-Id: I33eddf566e2d453dff14c123fc6c8cda97382b2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192573
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
(cherry picked from commit 961439e8e6f7a5a179bcdd092254dd1f32a1c7c5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192672
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-19 Noel Grandin <noelgrandin@gmail.com> [0056bfa3fccc4f50ae0dccf70be01aed55583e93]
tdf#168744 editting format of writer input field asserts
Fixing two bugs here. To trigger these bugs, try to do:
open bugdoc
right-click -> edit fields
and then change the selected date format
and then click OK
First I have to remove an assert added in:
commit 99055ae98ef1fe67b8db4a8c3167a8acaeaac02f
Author: Michael Stahl <michael.stahl@allotropia.de>
Date: Fri Feb 2 20:10:24 2024 +0100
tdf#123968 sw: fix assert on importing ooo62823-1.sxw
Which makes no sense, because we use those values all over
the place in SwSetExpField, and this assert does not
seem to be related to the rest of that bugfix.
Secondly, we have to fix a cast and then a check in
SwFieldPage::InsertField.
SwFieldTypesEnum::Input can, for better or worse, either
refere to an SwInputField or an SwSetExpField, so we
cannot cast to an SwInputField BEFORE we have checked if
it is actually an SwInputField.
Also the condition we were checking here is the wrong way
to determine what kind of subclass this is.
Change-Id: I92c0047a2a3662d3184aad2ec06f565e306d5407
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192067
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
(cherry picked from commit 388af2c059533adb773fa9a4ebda577da523509c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192089
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-19 Justin Luth <jluth@mail.com> [26f5e07563f6f95dc2f9e00b9eb4315aa0e2951a]
tdf#99205 sw options: don't lose automatic spell checking status
This patch fixes Tools - Options - Writer
from mistakenly turning off the automatic spell checking.
The SwModule m_pUsrPrefs is created early,
before a view has been created,
so the default value of bOnlineSpell(false)
might still be in effect.
Since "ApplyItemSet" doesn't at all control IsOnlineSpell,
pull the global value from the current view,
so that we don't get a mistaken change in ApplyUsrPref
if( !(*pSh->GetViewOptions() == *xViewOpt) )
{
//is maybe only a SwViewShell
pSh->ApplyViewOptions( *xViewOpt );
Change-Id: I761ce6c04ee45b7f228615be57bf6235c3e18fe2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192585
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
(cherry picked from commit a2de588c344f24f8f2e359d6f2b736fc4fba0a80)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192667
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-19 Michael Weghorn <m.weghorn@posteo.de> [fd3605fbcea46ca35bdeaaa5dd5f8a8b5016e0f9]
linux_aarch64: Fix Android build with NDK 29
An Android build including autogen options
--with-android-ndk=$HOME/Android/Sdk/ndk/29.0.14206865
--with-distro=LibreOfficeAndroidAarch64
failed like this:
.../bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx:604:29: error: cannot initialize a parameter of type 'char *' with an rvalue of type 'unsigned char *'
604 | __builtin___clear_cache(const_cast<unsigned char *>(begin), const_cast<unsigned char *>(end));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Tweak the version check introduced in
commit 28e542dc61d408f5807e8c94ed48c273146edbda
Date: Wed Apr 23 13:17:21 2025 +0200
Avoid loplugin:redundantcast on macOS with recent LLVM 21 trunk
...including
<https://github.com/llvm/llvm-project/commit/b6b025797245a5e5416b522df041252e3c4ff868>
"Fix the signature for __builtin___clear_cache (#134376)", which now caused
> bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx:601:9: error: redundant reinterpret_cast, result is implicitly cast to void pointer [loplugin:redundantcast]
> 601 | reinterpret_cast<char *>(const_cast<unsigned char *>(begin)),
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx:602:9: error: redundant reinterpret_cast, result is implicitly cast to void pointer [loplugin:redundantcast]
> 602 | reinterpret_cast<char *>(const_cast<unsigned char *>(end)));
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
to not expect the new signature for Android NDK <= 29,
for which __clang_major__ is 21, but which doesn't have the
relevant commit mentioned in the commit message quoted above.
The NDK 29 release notes mention [1]:
> Updated LLVM to clang-r563880c. See clang_source_info.md in the toolchain
> directory for version information.
~/Android/Sdk/ndk/29.0.14206865/toolchains/llvm/prebuilt/linux-x86_64/clang_source_info.md
contains this:
> Base revision: [386af4a5c64ab75eaee2448dc38f2e34a40bfed0](https://github.com/llvm/llvm-project/commits/386af4a5c64ab75eaee2448dc38f2e34a40bfed0)
That referenced llvm-projects commit
386af4a5c64ab75eaee2448dc38f2e34a40bfed0 is indeed before
the b6b025797245a5e5416b522df041252e3c4ff868 one mentioned
above.
[1] https://github.com/android/ndk/wiki/Changelog-r29
Change-Id: I88419d0d8d47563d6d0d236dc17806979e56c831
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192378
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit 1ccb2ecd4e3e883e7a715b0b0f13c2e57d120b45)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192402
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-19 Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> [7574ddff417e9767a7c1c1285fc50ee51f41caed]
tdf#164927 allow Theme dialog to be customized in menu/toolbar
Change-Id: I157474d2ff0bc060d717e373f98eb50729b8645c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192564
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit f1c96d118a29e4f406c88ca9202ec6b317c89df2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192599
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-19 Mike Kaganski <mike.kaganski@collabora.com> [d0b3b1086cf6fe7c8160bd08b69cf375b44a6b88]
Related: tdf#168842 digits in GtkSpinButton, lost in SRC -> UI conversion
The digits setting may only apply when the current unit is point: see
SetFieldUnit, which special-handles the unit. So the omission of the
setting went unnoticed for a long time.
This is similar to commit 75b30f1d107f45aebbf9a0811b9d40f4b2bafdce
(tdf#168842 Issue entering paragraph values in cm, when default is in
points, 2025-10-15), and tried to handle the rest of omissions in UI.
Change-Id: Ia348e29b268c5f49dc9eedc24262d30efbb8faa5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192636
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit f6df8fc72f9bcab541554cd98859304f34d19f21)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192659
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-17 Regina Henschel <rb.henschel@t-online.de> [3ba0ea447d88856da2e08db3ad3b12c0a7f622d3]
tdf#168861 tooltip line wrap for length > 100 char
The current threshold is 150 characters. However, this results in very
wide normal tooltips that are hard to read. Therefore, the threshold is
reduced to 100 characters. The value 100 was chosen because it is
currently already used as threashold for cases where the text contains
line breaks.
If the tooltip length is smaller than 100 characters, the tooltip is
displayed in a single line. This behavior does not change with this
patch.
The threshold was introduced for OOo bug i42424 to force a line wrap
in the footnote balloon rectangle that is shown when you hover over
a footnote anchor with the mouse.
I don't know how to test the width of such a temporary tooltip
rectangle in a unit test. Thus a unit test is missing.
Change-Id: I7e4c47e5212f0af2510878ef2c3d6475d1d5ba46
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192458
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
(cherry picked from commit 34612217f8a027b940169899eb5c5514155649df)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192570
2025-10-15 Bogdan Buzea <buzea.bogdan@libreoffice.org> [6dacd3417222825e3bdfb1420fafcd4b2abe4eb5]
tdf#168842 Issue entering paragraph values in cm, when default is in points
Change-Id: Ib954a05bc9bea2db72b37da803a192f645e127b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192405
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 75b30f1d107f45aebbf9a0811b9d40f4b2bafdce)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192422
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-10-13 Julien Nabet <serval2412@yahoo.fr> [7b00f09c09f24b403102decc1f205b51bdcbaeaf]
Fix f5f228ea9d5abd24e6e6fc332b383894ec6d2d8c
Only the first change was right.
The other one is wrong, console log showed
(soffice:82981): GLib-GObject-CRITICAL **: 20:52:50.810: g_object_new_is_valid_property: property 'label' for type 'GtkCheckButton' cannot be set twice
Change-Id: Iab3528a6c181e2af20690977586395e52e0f3240
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191515
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
(cherry picked from commit ba6ae8bfdb3f92f5d8f702c40f1c281754378234)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192324
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-10-13 Mike Kaganski <mike.kaganski@collabora.com> [c5500e388884785cc7590832d321353467abcb6d]
Deduplicate some code that clamps values
Change-Id: I7581863235c93eacbffd3bea7fe2733a97395b17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192239
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit dc33e6bbcd3132036eff1069834348ea67de8cee)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192257
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-12 Mike Kaganski <mike.kaganski@collabora.com> [4c9a19587ffe26606f7664ae6272767b20c32609]
tdf#168709: set decimal digits for Page dialog's metric controls
Regression after commit 7ba10e2d317a53763e1aff55a85546bfdac12fc5
(Convert page format tab page to new widget UI, 2013-02-27).
Before the change, in cui/source/tabpages/page.src there were
'DecimalDigits' for all metric controls, set to 2. The commit
didn't set any digits in the UI file that replaced page.src.
The adjustment of the metric fields happens in SetFieldUnit; if
the current unit is point, then the result of the adjustment will
depend on the pre-set digits; when there was none, it stays none.
This change restores 2 decimal digits in the UI.
Change-Id: I98ed501825e1c9115f992441cbd28a089fe0a234
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192236
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 81c707a4aa897d2793aa3f40dd08295ab7e019c9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192255
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-12 Mike Kaganski <mike.kaganski@collabora.com> [bb821267b55541e515087b598054502ec450840b]
tdf#168709: round double value instead of truncation
Regression from commit cfff893b9c82843a90aac4ecdb3a3936721b74a0
(Move unit conversion code to o3tl, and unify on that in more places,
2021-02-14).
Change-Id: If18e8537cd03d3fd516bd164c6a816f1bba38f7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192235
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit dd544837226d9af2a777c145f91972fd0b755587)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192254
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-12 Caolán McNamara <caolan.mcnamara@collabora.com> [f335e5b73193912a2ceda2e577093e80e98e27a7]
ofz Use-of-uninitialized-value
Change-Id: I3dfc1296e174d6751300991f214e99b09d745e5c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192189
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-12 Caolán McNamara <caolan.mcnamara@collabora.com> [7796d3e5522f0cdb6508362cbd9b49255ec866cc]
ofz Use-of-uninitialized-value
Change-Id: I6a80b3e16f904d50e72c03bab25164e03f192a21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192186
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-10 Heiko Tietze <tietze.heiko@gmail.com> [61fdfed5372c2e914ff735377a591d17451054aa]
Resolves tdf#154443 - Use Colibre fallback for page shadow
Change-Id: Ieadfbea52304686d6af609d7a211c74510f8a91b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192096
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
(cherry picked from commit fbbbc56214d4a1fa72bb2453ad0f321294ad8049)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192143
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-10 Dev Lo <lodev@ossii.com.tw> [e4063dc67bd79aa34d23de292b6b462d9339304f]
tdf#146101 Filter Context prop in Notebookbar Extension tab and menu
Shows correct icons in Extension tab, and correct extensions in the
right-hand dropdown menu
Change-Id: I6902fc3fe380841356d4c5753cb326df62305d11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191418
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
(cherry picked from commit f44eca0ace11a195b0516a6cadab9be0a4857331)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191995
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-07 Heiko Tietze <heiko.tietze@documentfoundation.org> [f8a323604ed37f916236d3a8b640732b93a2a568]
Resolves tdf#168610 - MacOS main icon should respond to icon style
Requires some transparency that macOS can fill with dark/clear/tinted
values. To achieve this, the white background of the main icon and its
shadow was removed temporarily and the icon expanded to fill the space.
Change-Id: Ib82b457c038ff237c7f3b60441ec915a91d040e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192008
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
(cherry picked from commit c1c340425d8c842e73f546b0803e026672c77fc6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192042
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-07 Patrick Luby <guibmacdev@gmail.com> [811a901f6242e9dd7d01a050ad9cb793a555a0d4]
tdf#168711 Ignore marked text in -[SalFrameView selectedRange]
While -[SalFrameView attributedSubstringForProposedRange:actualRange:]
looks at marked text, -[SalFrameView selectedRange] should only return
selected text.
Change-Id: I8145f6d186cb4d17a50c545929bde3023caddd62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191989
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
(cherry picked from commit 0f6d14dbe7f0f5a50a28ea8b796a8a97de756487)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192041
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-07 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [cb0271065184716e247c222410878ce444cd2e58]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to 8580a1686ad62f6cc2960447d96855315e3a1117
- update translations for 25.8
and force-fix errors using pocheck
Change-Id: Iae167d1fe7905971d19ac26f99bcd6c34c3c155a
2025-10-06 Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> [5a597640883526f80a466dcebbdc6d69ad6a61be]
Update git submodules
* Update helpcontent2 from branch 'libreoffice-25-8'
to fee16ab5d16ee912ac40010c9ebed311ac5991ed
- Revert "tdf#151551 Help Updates for Hyperlink Dialog"
This reverts commit 10793e69187eaa6092dad7943dbf78b2e6f556f1
Change-Id: I718176c8417becd3de44ce99b37fc1abc07b5046
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/191833
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
(cherry picked from commit 67cf1084e0f8897deb522fc9bd8b8a47776b2c02)
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/191956
2025-10-06 Michael Stahl <michael.stahl@collabora.com> [dc06c589ef2a97a84570c4b14a9fbcc6670f13aa]
tdf#167205 package: fix writing Zip64 local headers
This would be reported on reading as an 8-byte gap at the position where
a 32-bit DD for the entry would end.
The problem is that if flag bit 3 is set, and the uncompressed size
exceeds 2^32, writeDataDescriptor() will write 8-byte sizes, but the
Zip64 extension header is missing - the latter should also write 0 even
though the APPNOTE doens't appear to require it.
4.3.9.2 [...] When extracting, if
the zip64 extended information extra field is present for
the file the compressed and uncompressed sizes will be 8
byte values.
Also make sure that the ZipEntry nSize member actually contains the
uncompressed size, which is somewhat tricky, but is required in
writeLOC() to check if Zip64 is needed. (Assume that the DEFLATEd size
is never larger than uncompressed, which is true for every XML file).
Change-Id: I611e6ffda12d8e6953e9306dc4a4407be8e725a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191185
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit abfdc11fa45610f38d00999f66416c66a868426a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191719
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-03 Xisco Fauli <xiscofauli@libreoffice.org> [6b124070e695649bb1480b32a15acfa606ee9738]
openssl: upgrade to 3.0.18
Downloaded from https://github.com/openssl/openssl/releases/download/openssl-3.0.18/openssl-3.0.18.tar.gz
Change-Id: Ie24873924bf8a0f9d3edb37e4e69e2e64b25ce47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191693
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit b9abb977cbdc90ffc5c60ac5307cede571c168d7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191694
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-03 Michael Weghorn <m.weghorn@posteo.de> [f36e68a9085d02317997f64faedb685054d56589]
tdf#168646 vcl: Forward unhandled tooltip event to base class
In VclDrawingArea::RequestHelp, if the drawing area specific
logic doesn't provide a tooltip text to show, call the base
class implementation, instead of returning without doing
anything.
This ensures that the extended tip logic implemented in
Window::RequestHelp is triggered as expected when
those are enabled.
Change-Id: I2918cc3377ec53e649d54cceaf0c9cb53effe58f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191801
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
(cherry picked from commit 9adbd5a71dca00de4d2323883a01ae4e7c02dc97)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191804
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-03 Jonathan Clark <jonathan@libreoffice.org> [dd6c84ccf72e02f921664b9954425b19793bc245]
tdf#136663 sw: Remove extra spacing between Hangul and non-CJK scripts
Previously, Writer would add a kern portion between any CJK text and any
non-CJK text. This is the correct behavior for Chinese and Japanese,
which add a small amount of extra space between CJ characters and
non-CJK text as a typesetting convention. This behavior is not, however,
a convention of Korean typesetting.
This change corrects Writer so it no longer inserts this extra space if
the involved CJK characters are Hangul.
Change-Id: I711df97fca55cb8c26809ac5549871f2407bbfaa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191756
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191761
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-03 Xisco Fauli <xiscofauli@libreoffice.org> [426beb0fe20753ebc60c43149d27fe38d7d0257e]
harfbuzz: upgrade to 12.1.0
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/12.1.0/harfbuzz-12.1.0.tar.xz
Change-Id: I693d354139b8ce0e06b41dfb4a90381321762eb8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191767
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191792
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-03 Xisco Fauli <xiscofauli@libreoffice.org> [ad1cc6c7e34dff03604a4ae5978d5efd8712d8ca]
harfbuzz: upgrade to 12.0.0
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/12.0.0/harfbuzz-12.0.0.tar.xz
Change-Id: Ib0010a2ef897b7c2ef5f75ba8eea15d2ecf365e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191631
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit e6bcb4ae0d958a53b40dfc0c88f4f7d7f98d677f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191640
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-10-02 Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> [87de4e9da06aa91e6bd92bbd2d4c0b81d22c5d7a]
Revert "tdf#151551 Remove frame target option from Hyperlink dialog"
This reverts commit 74147823a7c933c796239b00cd9bf89edb899eb3.
The terminology in the dialog confused the reporter and implementers
and a useful feature was accidentally removed. The feature may be
simplified later, but let's first revert cleanly.
Change-Id: I9eb567bda59e3ad88ddfa370d04d5d8e1f944aab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191741
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit a2ed9aa09ad8d2601cf6198c8cd8647c08f09c16)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191765
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-02 Balazs Varga <balazs.varga@collabora.com> [83f80f46bfec8e023727db2d87c22876a2ddf6bd]
tdf#168589 - sc fix xls import with subtotal function
Check if the trimmed data range of Subtotal double references
is valid otherwise do not trim.
regression after: b89047a0f0100fb30121084cf42815aa792c1f88
(tdf#164843 - sc optimize "SubTotal" function's reference ranges)
Change-Id: I5f1fa4f67a685deb4a391e19e3acd9849b03c1b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191691
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191760
2025-10-01 Xisco Fauli <xiscofauli@libreoffice.org> [58f7ecbcf486672bc5c1dddd25cd0097113a8d51]
update credits
Change-Id: Ice1c1887ada55c21b7a9d1af86bb5315a3f7f70a
(cherry picked from commit a1911bbebc9fbd949f81755cb7148d53e13948ed)
2025-10-01 Jean-Pierre Ledure <jp@ledure.be> [1c81dbad870c2befad699e14e3694d684cf3064d]
ScriptForge fix tdf#168409 AccessibleContext
Extract from above bug report:
The accessibility UNO API is unpublished and
for LibreOffice-internal use only and
subject to change by design.
The com.sub.star.accessibility.AccessibleContext
service is used in ScriptForge to determine
the location on the screen, in pixels, of
next window subsets:
(1) a Calc cell or cellrange
=> calc.XRectangle(range) property
(2) a toolbarbutton in a docked toolbar
=> toolbar.ToolbarButtons(buttonname) method
In both situations, SF offers a facility
to display a well-positioned popup menu
triggered by a mouse left- or right-click.
The situation of the API is as follows:
- fully available in 25.2
- partially available in 25.8
(1) is not broken
(2) is broken
- fully vanished in 26.2
The gradual phase-out of the API requires,
to fix the bug, a tiered adaptation of
the code.
The choice is made to incorporate, where
appropriate, a switch to the right code
snippet based on the run LibreOffice version:
25.2, 25.8 or 26.2.
Now the behaviours in 25.2 and 25.8 are
identical. In 26.2, a different location
is returned for undocked toolbars.
The solution used for 26.2 must be considered
as still subject to change.
The emergency is to fix the issue in 25.8,
which is currently broken.
With the actual patch, the compatibility
between releases is restored, both in
Basic and Pythonuser scripts, and does
not need any documentation revision.
Change-Id: I29b4ccca3f11eca39e5a1841d3cfd744d5eb1fe3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191670
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191708
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-10-01 Xisco Fauli <xiscofauli@libreoffice.org> [a7f25c21ecb29817343a253866479adb93c57970]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to beabc8d706ba792b668024e5ba652feed42c5b28
- update translations for 25.8.2 rc2
and force-fix errors using pocheck
Change-Id: I388f345814db612a19ae52c95614e9a2c12de901
2025-10-01 Jim Raykowski <raykowj@gmail.com> [dd72fd35bbe35798026f2f22189e34e57cf6d65c]
tdf#167405 Fix outline folding crash
In this case one that happens on folding outline content when the
document view is set to 'Web' and the Navigator is open.
SwDocShell::Broadcast(SfxHint(SfxHintId::DocChanged)) in
SwRootFrame::CheckViewLayout causes an update of the Navigator content
tracking which when SwWrtShell::GetContentAtPos is called in
SwContentTree::Update eventually fails an assert in
objectpositioning::SwEnvironmentOfAnchoredObject::GetVertEnvironmentLayoutFrame
with the assert message:
"SwEnvironmentOfAnchoredObject::GetVertEnvironmentLayoutFrame(..) -
found frame isn't a layout frame"
stack at crash:
objectpositioning::SwEnvironmentOfAnchoredObject::GetVertEnvironmentLayoutFrame
environmentofanchoredobject.cxx 91
objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition
tocntntanchoredobjectposition.cxx 287
SwFlyAtContentFrame::MakeObjPosfly cnt.cxx 1522
SwFlyFreeFrame::MakeAll flylay.cxx 222
SwFlyAtContentFrame::MakeAll flycnt.cxx 413
SwFrame::PrepareMake calcmove.cxx 396
SwFrame::Calc trvlfrm.cxx 1858
SwFlyFrame::Calc fly.cxx 3438
SwFlyFrame::GetModelPositionForViewPoint trvlfrm.cxx 567
(anonymous namespace)::lcl_GetModelPositionForViewPoint_Objects
trvlfrm.cxx 87
SwPageFrame::GetModelPositionForViewPoint trvlfrm.cxx 208
SwRootFrame::GetModelPositionForViewPoint trvlfrm.cxx 477
SwCursorShell::GetContentAtPos crstrvl.cxx 1519
SwContentTree::UpdateTracking content.cxx 4779
SwContentTree::TimerUpdate content.cxx 4668
SwContentTree::Notify content.cxx 4046
SfxBroadcaster::Broadcast SfxBroadcaster.cxx 43
SwRootFrame::CheckViewLayout pagechg.cxx 2515
SwFrame::AdjustNeighbourhood wsfrm.cxx 1816
SwLayoutFrame::ShrinkFrame wsfrm.cxx 3020
SwFrame::Shrink wsfrm.cxx 1635
SwContentFrame::Cut wsfrm.cxx 1390
SwContentNode::DelFrames node.cxx 1552
SwWrtShell::MakeOutlineContentVisible wrtsh1.cxx 2649
SwWrtShell::InvalidateOutlineContentVisibility wrtsh1.cxx 2703
SwEditWin::ToggleOutlineContentVisibility edtwin.cxx 7135
Fixed by waiting to paint until after removal of content frames during
InvalidateOutlineContentVisibility.
Change-Id: I69fdf173763211f42c5079069e79253ccdc19d79
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191576
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Tested-by: Jenkins
(cherry picked from commit c2ad58945c22bf7c8e77c70fc66af1faf998ac54)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191705
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-01 Patrick Luby <guibmacdev@gmail.com> [078f04ac171034e42003b219b41a7522093ec4f5]
tdf#168609 catch exceptions from SwXText::getString()
Apparently, implementions of XTextRange::getString()
such as SwXText::getString() can throw an exception.
Change-Id: Ie23651bbc36466ec95a037142f760dd59c7d6417
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191645
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
(cherry picked from commit b86c16870251877962e986ec9d1418e1f376241f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191695
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-30 Jim Raykowski <raykowj@gmail.com> [63765c15a10cf41123c31b917d7aa9358405456b]
tdf#168560 Sidebar Find: Select text on keyboard focus in find entry box
Like with the find entry box in the F&R dialog there is a bit of glitch
when using gtk VCL when the find text is not selected and is click on it
becomes selected and then not selected.
Change-Id: I879f85b676d737d03c4bb02069f5d80f385d343d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191600
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
(cherry picked from commit 4f33bb0f672a450ee5f2a4fd502398f2008fd7a8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191650
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-30 Pranam Lashkari <lpranam@collabora.com> [7e9ef9557da52b219e2c7ce500345510f9cbbc9c]
tdf#156263: fixes freeze after opening data validity dialog
after making dialog async ScValidationRegisteredDlg was destroyed while
dialog is still running causing undefined behaviour
regression caused by 63b26e8e20f6a4eeb3117925b7a727f565e3a2dc
Change-Id: Idef30f12b88c46cb30a01ffb12588bb11e279750
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191105
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191116
Tested-by: Jenkins
(cherry picked from commit ef7151c271d14f623759f87d30e452f2e6d66664)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191652
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
2025-09-30 Mike Kaganski <mike.kaganski@collabora.com> [665379874b65e963b8ebc39623dc25ffe5510a3c]
tdf#96787 tdf#168603 Skip primary language list, when country-specific found
... but don't skip the [All] (LANGUAGE_UNDETERMINED) list. See bug 141773
and commits ae56dc05b27f05ffcee99845d661a237e70a7a51 (tdf#96787: AutoCorrect:
after deleting a replacement entry, it's still used, 2021-01-10) and
50be3fa1f0f3b8870af5bda88b65f835ef37d77e (tdf#141773 AutoCorrect: fix broken
[All] dictionaries, 2024-06-29).
A separate issue is that the languags list in autocorrect options now lists
[Multiple] and [Undetermined], which shouldn't be there (the latter is the
same as [All]). It needs an own bug and a separate fix.
Change-Id: I1de8879c892efec23ce976b9e450088a22fdd652
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191643
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit a25c152abb31db437eb306f358ae71ab73d2e6ba)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191651
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-29 Aron Budea <aron.budea@collabora.com> [bd61271f10181fe6540264273753551779d4ac8a]
tdf#168598 Fix for tdf#148578 should only apply to RTF
It also affected DOCX files witch compatibilityMode
not specified.
Regression from 788cc6ff3b186ceb8f265e53b5482f808f6536f4
Change-Id: I1368066800ce4e6f4caa1131b1b6cf3590d8b1c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191587
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Aron Budea <aron.budea@collabora.com>
(cherry picked from commit a80d7ba9c01c8c5c95bf01960d969b82dc7edffc)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191625
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-29 Jim Raykowski <raykowj@gmail.com> [6157d6838a8af0d24658ba5d62192a72a6e0edfe]
Assure folded outline button does not remain after outline
level direct formatting is cleared
Without this patch the fold button remains and a crash occurs if the
button is pressed. The patch also assures folded outline content is
shown for outlines set by a style after the RES_PARATR_GRABBAG
"OutlineContentVisibleAttr" is reset.
Change-Id: I5ee19ec972c3084f3ba64c11bda32932141c81f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191526
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
(cherry picked from commit 7ceb7a58e1bb1aca85435ded158fa2e19c004bf7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191618
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-29 Dan Williams <dan@ioncontrol.co> [c7958ac67987a0418a0401fd51f10a8b3ea114f5]
connectivity/macab: avoid errors due to missing contacts.notes entitlement
Accessing an address book contact's Note field requires an entitlement since
Mac OS 13. Without that entitlement the following error occurs:
CoreData: error: Unhandled error occurred during faulting: Error Domain=NSCocoaErrorDomain Code=134092 "(null)"
It seems unlikely that the Note field functionality is widely used for
anything the address book functionality is used for, so just ignore the
field entirely.
Signed-off-by: Dan Williams <dan@ioncontrol.co>
Change-Id: I694f3ac40a8dccb49f51818dcdb3da7948f560d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191057
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
(cherry picked from commit 15ee3a463768810b438d558533a3baca0700d690)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191290
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-29 Khaled Hosny <khaled@aliftype.com> [f1e35b8ffd498b2d390f50ae9816fe0d9c904a49]
tdf#168371: Disable ligatures in Impress/Draw with character spacing
This is follow up to commit:
commit b9f0caad5d9e628f82d5148dfc7d2436d32817e2
Author: Khaled Hosny <khaled@aliftype.com>
Date: Tue Aug 23 04:13:28 2022 +0200
tdf#66819: Disable ligatures with character spacing
Even though editengine was applying letter spacing, when drawing with
drawinglayer, letter spacing was not propagated which caused VCL to not
disable the ligature features.
Change-Id: Ia8bf2231478720262484a757e16fe5afec3cd28e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191512
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191627
2025-09-29 Miklos Vajna <vmiklos@collabora.com> [92cc08867f025cd62419f92e26a4d717575ac116]
tdf#166338 vcl: avoid unwanted downscale in DrawTransformedBitmapEx()
Open the Impress bugdoc, the "Annotated result:" image's "red cable"
bitmap is sharp in edit mode, but is blurry when presenting.
This went wrong in commit 7c94d7267bc8b5f43185204ab4953c4b188214bf
(tdf#149943 vcl: fix pixelated PDF export and print for a rotated image,
2022-08-03), which stopped changing the scale part of the transform
matrix. The old problem was that the transform resulted in a downscale:
debug:5739:5739: OutputDevice::DrawTransformedBitmapEx: aOriginalScale w,h is 226,100, aFullScale is (906.698,6277.69) -> for w, we go from 906 to 226
The new use-case is that this transform used to upscale in the past,
which preserved more pixels from the original bitmap:
debug:5632:5632: OutputDevice::DrawTransformedBitmapEx: aOriginalScale w,h is 326,1125, aFullScale is (21.1276,76.1197) -> for w, we go from 21 to 326
Fix the problem by conditionally restore the change of the scale in the
transform matrix: only do it when we would upscale. This was the
presented bitmap is sharp again, but the old use-case continues to work.
The deeper problem is why slideshow goes via a metafile at all, but
that's not changed here.
Change-Id: I73ef426dc9d047a0231a700b0fe7ed0e4747d81b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191497
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit e81b948f90e66779e225d0dfb5e3ad1e6e80f289)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191599
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-29 Balazs Varga <balazs.varga@collabora.com> [161311deff7d1efaa7cca1f06b74df4d1b5f7efb]
tdf#140866 - sc fix cell comments disappear after ods saving
They disappeared because before saving the file to ods
some other drawing objects very copied and pasted on the sheet
which caused a recalculation of all the cell anchored drawing object's
anchor position with SetCellAnchoredFromPosition since commit:
545737df40880875304bffc3f49800d1d2e99723
No need to recalculate the cell anchor position of Caption objects
since their anchor position is handled differently.
Change-Id: I83d54075974d9a7c2676af23f285e621afe0d523
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191548
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga@collabora.com>
(cherry picked from commit d932a383766b6133ffe9ebf077f95cc328807b1b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191608
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-29 Mike Kaganski <mike.kaganski@collabora.com> [ecb65b032dc169cda9e5beed2d2a61ab47619bdb]
tdf#168599: don't create Any from a direct reference to an interface
An overlook from commit 3cb0678a9cac9a681903b5a082d1c5dd5f25f665
(fix dodgy DrawController::fireChangeLayer code, 2025-03-05).
This goes through this ctor:
template <typename T>
inline Any::Any( T const & value )
{
::uno_type_any_construct(
this, const_cast<T *>(&value),
::cppu::getTypeFavourUnsigned(&value).getTypeLibType(),
cpp_acquire );
}
which gets a valid type for the value (typelib_TypeClass_INTERFACE),
and then uses a raw pointer in uno_type_any_construct. This crashes
(0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF)
because _copyConstructAnyFromData assumes typelib_TypeClass_INTERFACE
case to have a pointer to pointer (a pointer to css::uno::Reference,
which is itseld a lone pointer), with this stack:
sdlo.dll!com::sun::star::uno::cpp_acquire(void * pCppI) Line 47
cppu3.dll!cppu::_acquire(void * p, void(*)(void *) acquire) Line 70
cppu3.dll!cppu::_copyConstructAnyFromData(_uno_Any * pDestAny, void * pSource, _typelib_TypeDescriptionReference * pType, _typelib_TypeDescription * pTypeDescr, void(*)(void *) acquire, _uno_Mapping * mapping) Line 243
cppu3.dll!cppu::_copyConstructAny(_uno_Any * pDestAny, void * pSource, _typelib_TypeDescriptionReference * pType, _typelib_TypeDescription * pTypeDescr, void(*)(void *) acquire, _uno_Mapping * mapping) Line 284
cppu3.dll!uno_type_any_construct(_uno_Any * pDest, void * pSource, _typelib_TypeDescriptionReference * pType, void(*)(void *) acquire) Line 69
sdlo.dll!com::sun::star::uno::Any::Any<com::sun::star::drawing::XLayer>(const com::sun::star::drawing::XLayer & value) Line 68
sdlo.dll!sd::DrawController::fireChangeLayer(const com::sun::star::uno::Reference<com::sun::star::drawing::XLayer> & xNewLayer) Line 473
sdlo.dll!sd::DrawViewShell::SetActiveTabLayerIndex(int nIndex) Line 635
sdlo.dll!sd::FuPoor::SwitchLayer(long nOffset) Line 1060
sdlo.dll!sd::FuPoor::KeyInput(const KeyEvent & rKEvt) Line 493
sdlo.dll!sd::FuDraw::KeyInput(const KeyEvent & rKEvt) Line 432
sdlo.dll!sd::FuSelection::KeyInput(const KeyEvent & rKEvt) Line 1056
sdlo.dll!sd::ViewShell::KeyInput(const KeyEvent & rKEvt, sd::Window * pWin) Line 530
sdlo.dll!sd::DrawViewShell::KeyInput(const KeyEvent & rKEvt, sd::Window * pWin) Line 252
sdlo.dll!sd::Window::KeyInput(const KeyEvent & rKEvt) Line 226
vcllo.dll!ImplHandleKey(vcl::Window * pWindow, NotifyEventType nSVEvent, unsigned short nKeyCode, unsigned short nCharCode, unsigned short nRepeat, bool bForward) Line 1236
vcllo.dll!ImplWindowFrameProc(vcl::Window * _pWindow, SalEvent nEvent, const void * pEvent) Line 2742
vcllo.dll!SalFrame::CallCallback(SalEvent nEvent, const void * pEvent) Line 310
vclplug_winlo.dll!ImplHandleKeyMsg(HWND__ * hWnd, unsigned int nMsg, unsigned __int64 wParam, __int64 lParam, __int64 & rResult) Line 4011
vclplug_winlo.dll!SalFrameWndProc(HWND__ * hWnd, unsigned int nMsg, unsigned __int64 wParam, __int64 lParam, bool & rDef) Line 5925
vclplug_winlo.dll!SalFrameWndProcW(HWND__ * hWnd, unsigned int nMsg, unsigned __int64 wParam, __int64 lParam) Line 6226
user32.dll!UserCallWinProcCheckWow(struct _ACTIVATION_CONTEXT *,__int64 (*)(struct tagWND *,unsigned int,unsigned __int64,__int64),struct HWND__ *,enum _WM_VALUE,unsigned __int64,__int64,void *,int)
user32.dll!CallWindowProcW()
opengl32.dll!wglWndProc()
user32.dll!UserCallWinProcCheckWow(struct _ACTIVATION_CONTEXT *,__int64 (*)(struct tagWND *,unsigned int,unsigned __int64,__int64),struct HWND__ *,enum _WM_VALUE,unsigned __int64,__int64,void *,int)
user32.dll!DispatchMessageWorker()
vclplug_winlo.dll!ImplSalDispatchMessage(const tagMSG * pMsg) Line 431
vclplug_winlo.dll!ImplSalYield(bool bWait, bool bHandleAllCurrentEvents) Line 500
vclplug_winlo.dll!WinSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents) Line 537
vcllo.dll!ImplYield(bool i_bWait, bool i_bAllEvents) Line 389
vcllo.dll!Application::Yield() Line 492
vcllo.dll!Application::Execute() Line 365
sofficeapp.dll!desktop::Desktop::Main() Line 1682
vcllo.dll!ImplSVMain() Line 230
vcllo.dll!SVMain() Line 249
sofficeapp.dll!soffice_main() Line 122
soffice.bin!sal_main() Line 51
soffice.bin!main(int argc, char * * argv) Line 49
soffice.bin!invoke_main() Line 79
soffice.bin!__scrt_common_main_seh() Line 288
soffice.bin!__scrt_common_main() Line 331
soffice.bin!mainCRTStartup(void * __formal) Line 17
kernel32.dll!BaseThreadInitThunk()
ntdll.dll!RtlUserThreadStart()
Change-Id: Ib61823e74b260d262adbaa5d3d63232b599d3cac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191593
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 16a0b42a4f79a20a2aaf8dd443c55b81a8084351)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191607
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-29 Oliver Specht <oliver.specht@cib.de> [fd25b527b3c03f20050aad763b8eb18982f018c0]
tdf#167973 Fixes case rotation in selection in multiple paragraphs
Broken in commit b1170251fbca5b6b243902cf10695ab4c4c5642b because it checked
the selection in a single paragraph only.
Change-Id: If84aca87c9fee5750751cd91cb08372714f17eba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191472
Tested-by: Jenkins
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
(cherry picked from commit bb496f5494a23c247c86fdf5ae65054908df44ce)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191601
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-29 Mike Kaganski <mike.kaganski@collabora.com> [3d7003a7c1010ba50cb6442f407d2560d9aaf26a]
tdf#168569: support date values in string pool
Commit f45463d8e2bb0771ec1837d159ff98108b0047cf (tdf#93727 Support date
literals in basic, 2017-05-24) introduced correct parsing of literals
like #2025-09-26#. However, it didn't retain the value type; there was
a discussion about that in gerrit, but no solution was found, and type
was set to double.
Later, a similar problem (storing type of value in compiled image) was
fixed in commit 5eedb3beeaeed88de0d1ebd041a9f15ceea7e78c (tdf#142460:
properly handle boolean values in string pool, 2021-06-25).
This change reuses the same method to store date type using 'd' char in
the string pool.
Change-Id: I32e8497ece1f30980ba6d4fca248687b817348f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191555
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 22d7827c6695358e11ee06a5599b72a92ff0b2ac)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191595
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-29 Mike Kaganski <mike.kaganski@collabora.com> [f846899e0b6fc2ec9ab2b4a4f65d06549e3f0763]
tdf#168561: fix Str function implementation
1. If a string is passed as argument, it is returned without any changes.
For that, SbRtl_Str checks argument type, skipping processing for string.
2. Non-negative numbers are preceded by a blank space.
That already was implemented.
3. Negative numbers are preceded by a minus sign.
That was done incorrectly - a space was added for any number.
4. Dates are converted into locale-dependent strings.
That wasn't done at all - dates were converted to strings representing
the serial date. A check is implemented SbxValue::Format, to handle this.
Additionally, Format function was improved to handle such input without
format string (taking into account that it handles strings that can be
converted to numbers differently).
Change-Id: I5ac0429950e4ea8bf69b0091502b4e6dc1f4957d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191549
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 92878d3216aeaf0e5131c0c3fa1f8dc9ce67b5b4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191582
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-27 Noel Grandin <noel.grandin@collabora.co.uk> [5442778d975c1a6146ce6ff0c66a13c64dcab904]
tdf#166895 Document Colors do not appear anymore in the color selection
missed a spot where we are using surrogate functionality.
Also rename ForEachCharacterBrushItem->ForEachCharacterBackgroundBrushItem to make it more obvious.
Regression from
commit 56d35ad0eaccd353c8acd2a259293199e233e8ec
Author: Noel Grandin <noelgrandin@gmail.com>
Date: Mon Sep 9 17:14:43 2024 +0200
RES_CHRATR_HIGHLIGHT does not need surrogate support
and
commit 08c58ac51962b65b57c5b76a45467d45807ef02d
Author: Noel Grandin <noelgrandin@gmail.com>
Date: Mon Sep 16 21:04:59 2024 +0200
dont use GetItemSurrogates for gathering SvxColorItem
and
commit b6a5cdc0f753c8ed6ed080f9189ac2e2601dce9d
Author: Noel Grandin <noelgrandin@gmail.com>
Date: Tue Sep 17 20:19:06 2024 +020
dont use GetItemSurrogates for gathering SvxBrushItem
Change-Id: Id67d78aa82f8731555f06b23760c4ea8f0d8eeb5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191317
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 50099a54cd32afd361810e3059af3b420741d41b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191352
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-27 Jim Raykowski <raykowj@gmail.com> [758eebe416aa26e61a02fb491406ad225bf36e02]
tdf#168025 Fix style spotlight numbers in styles list do not always
match style spotlight numbers in document view
This is a partial revert of commit
b5e366c97d813c65d477941d45ae55f7dff954ad
Change-Id: I016f8039d9b8e228afe26231a565679320c1f726
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191373
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
(cherry picked from commit 3967cdfe862dd4d542ae50cf16c46a62ab17cfa0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191411
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-27 Laurent Balland <laurent.balland@mailo.fr> [a5dc5761eedf7dc8e33fc9cd2a0817c682c7270d]
tdf#168571 Restore gradient in Candy template
draw:fill-gradient-name requires draw:fill="gradient"
Change-Id: I3646b683486317e804adccb9faf994742fe1fb0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191562
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
Tested-by: Jenkins
(cherry picked from commit 771a93e3be34dfbd77b4dbba407caa9677090488)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191569
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-26 Xisco Fauli <xiscofauli@libreoffice.org> [5ab3bd933fa7c482ee7b3a970fa2013ea9b1fc9d]
liblangtag: upgrade to 0.6.8
0001-const-up-__lt_localealias_tables.patch.1 has been fixed
upstream
Downloaded from https://gitlab.com/-/project/74684761/uploads/9f74bd278e6edfbf1093605d38fb7a97/liblangtag-0.6.8.tar.bz2
Change-Id: I4b171d98271921c959115a8fabdf20217350be5d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191445
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 9bb3947fadb83712492a156b3477d82f2280a3b3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191450
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-09-26 Xisco Fauli <xiscofauli@libreoffice.org> [1522ce4e0f929c77d7ae26868a2e7c482e276926]
harfbuzz: upgrade to 11.5.1
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/11.5.1/harfbuzz-11.5.1.tar.xz
Change-Id: I714b790bb241a48d6ffcf81fbf23853221530d7c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191382
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 122ca4944587c485889fc1680dab43949f4d9dce)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191389
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-09-26 Xisco Fauli <xiscofauli@libreoffice.org> [fe4196a5858282e0059e8f5e31c71f22899520d9]
libetonyek: upgrade to 0.1.13
Generated with:
./autogen.sh
./configure
make dist-xz
Change-Id: I29556afa131f622652b4fbc5b46e0c3c0e5b1bee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191333
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 7290daa1e12c5e81ed8c2909cdb6a164bfb3c478)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191351
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-09-26 Xisco Fauli <xiscofauli@libreoffice.org> [3d076e078e1f6f1a5899eb9f442fbcec5c762bcb]
libvisio: upgrade to 0.1.10
Generated with:
./autogen.sh
./configure
make dist-xz
Change-Id: Ida45f447bdd49bf4ee600e0f24a7bf4eb5cb0bca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191403
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 63887d9aaa252ee1b1b066831b28b53867a8c67f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191412
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-09-26 Xisco Fauli <xiscofauli@libreoffice.org> [bd246c04e4245aa2a75700dd1687e75746d6deb3]
tiff: upgrade to 4.7.1
Downloaded from https://download.osgeo.org/libtiff/tiff-4.7.1.tar.xz
Change-Id: I9eda3018e55e771986968ffacf7081538baf432b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191142
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit b3a027d2b7273478773bd0d8624b70f9a48b0952)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191162
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-09-26 Xisco Fauli <xiscofauli@libreoffice.org> [73a58ecd58ebe3a7275bb99eb19fd82113d0237f]
expat: upgrade to 2.7.3
Downloaded from https://github.com/libexpat/libexpat/releases/download/R_2_7_3/expat-2.7.3.tar.xz
Change-Id: I2141a3d2881e693867b23ca56a1d6a929f17c4fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191481
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 3bceab5b951aa45bc7ab1d86ebcfda8981d9693f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191496
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-09-25 Jim Raykowski <raykowj@gmail.com> [5b9e275838ec1cd08f1c1755de545b4f7f34c7d1]
tdf#166713 Fix crash in lcl_FoldedOutlineNodeEndOfParaSplit
by handling the case of a paragraph outline level set by direct
formatting.
Change-Id: Ida0c8f91f0fb0584b39c16b3ddf2201429c6943f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191471
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
(cherry picked from commit fd9ae53e39f3219474461d1e8e3220d8efdfcecb)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191482
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-25 Mike Kaganski <mike.kaganski@collabora.com> [8566b6167c5f788bf5849a461e4a52f66b6e3682]
tdf#168533: make sure to emit frame properties, when they changed
... because of popping state.
In the RTF markup:
\pard\pvpara\phpara\posx3500\posy0\absw3800\wraparound
Frame 2\par
{\pard Still frame 2}\par
the frame is created first: the frame properties are collected, m_bNeedPap
is set to true, and the frame settings are pushed in checkNeedPap, called
from RTFDocumentImpl::text() when "Frame 2" text arrives; that resets
m_bNeedPap. When checkNeedPap is called from \par handler code, m_bNeedPap
is false, and it bails out.
Then opening brace creates a new state on the stack; \pard resets all the
paragraph properties to default, including frame properties; then text
"Still frame 2" arrives, calling checkNeedPap, which doesn't send frame
properties, because there's none at this moment; it resets m_bNeedPap.
Then closing brace pops the state from stack, returning to the state with
the frame properties; and \par handler in RTFDocumentImpl::dispatchSymbol
calls checkNeedPap. But at this point, m_bNeedPap was still false, so it
bailed out, and didn't send the frame properties - so in the end, the
current paragraph never obtained frame properties, and got imported into
the main text flow.
This change makes sure, that whenever popping the state changes the frame
properties, m_bNeedPap is set, to ensure emitting it when time comes.
Change-Id: I61b95e2818a66f54d7026db3cbb85e92135807c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191439
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 202d41e0fb2432ca286953d5f7464289fcb52e30)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191453
Reviewed-by: Thorsten Behrens <thorsten.behrens@collabora.com>
2025-09-25 Xisco Fauli <xiscofauli@libreoffice.org> [6061ce779980d538c5c844cb5a9421e659e48536]
lxml: upgrade to 6.0.2
Downloaded from https://github.com/lxml/lxml/releases/download/lxml-6.0.2/lxml-6.0.2.tar.gz
Change-Id: If3a32f2c34fe7742ce83fdb8051616c97b9674f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191311
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 0453e8493e96c006a45a0accda26251531fd0eed)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191328
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-09-24 Balazs Varga <balazs.varga@collabora.com> [3e528101c3593eedaea492d03831630b03e933dd]
tdf#167042 - sc cell comments texts should not be deleted
but the note text should be remembered in maNoteData to be able
to later reconstruct a caption from it.
Originally the bPreserveData was introduced and set to true in commit:
b8b657123cc508c906622d20669507628c93e104
(tdf#104967 preserve isolated notes data in clipboard when closing document)
The original bugdoc from tdf#104967 was checked with this patch and
had no crash with it.
Change-Id: I3b6c56e4828c11c2cab0351c95dd4bcb5762d86e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191396
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga@collabora.com>
(cherry picked from commit 01765ffe843953bbf7d1e2822512306d3776b3be)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191461
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-24 Andreas Heinisch <andreas.heinisch@yahoo.de> [79b1860c23ead30dd230768012db72075f4c11f5]
tdf#168478 - Use the previously found range rather than returning an empty one
During the reset of a standard filter, if the correct boundaries are not
selected, do not return an empty range. Instead, reuse the previously
found range at the selection.
Change-Id: I42a603a8a284036710b608a519abd781b90991e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191245
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 6f68c46d0aa5fe872de0dec8777d35ff91886043)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191421
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-23 Xisco Fauli <xiscofauli@libreoffice.org> [fa88c843765ba5562010018241727b43a3d338eb]
libvisio: upgrade to 0.1.9
Generated with:
./autogen.sh
./configure
make dist-xz
Change-Id: I7b588ca176024055486f41ddcec1394f5971f97e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191320
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 1ac9e00df08f52c884a858180a0b1c14788ad4b3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191334
2025-09-23 Balazs Varga <balazs.varga@collabora.com> [465f423e4995c8ecb1e981db16d2c6b7c11c28ba]
tdf#168422 - Fix SUMPRODUCT calculation is broken in some cases
Double refs with operators only trimmable in case of one root paramater.
Follow up of: 969ddf72824942be9755a8d14482d6549a2231ce
regression after commit: 969ddf72824942be9755a8d14482d6549a2231ce
Change-Id: I87365efc5b7bc54bfdda4d33e4b5b9550d6e2602
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191365
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga@collabora.com>
(cherry picked from commit 22c0eb18f5dcaa76d4fc7a65e98e1d20589ced04)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191379
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-22 Laurent Balland <laurent.balland@mailo.fr> [d1e0f1ca1d9bbb810018df753f9529d3044c2f59]
tdf#168444 Fix XML in content.xml
<office:text> tag is not present in other languages
removing it fix the bug
Change-Id: I2aeae0ba5d254f2b271557369c2d1faf3204c2c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191244
Tested-by: Jenkins
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191324
2025-09-22 Laurent Balland <laurent.balland@mailo.fr> [8b83439dc0cc270a1eb517d3efb652293f1fbce8]
Indentation of XML files in AutoText
apply xmllint -- format to all XML files
This will ease debugging of XML, like tdf#168444
Change-Id: Iacb79990e49236e13490524f77460ebb0fec1653
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191241
Tested-by: Jenkins
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191323
2025-09-21 Patrick Luby <guibmacdev@gmail.com> [2dc604d5dc088dd80c8254bf5e2bddd5acac3bf7]
tdf#168375 return false if both KEY_MOD1 and KEY_MOD2 are pressed
Previously ImpEditEngine::IsSimpleCharInput() returned false only
if one of these modifiers is pressed. At least on macOS, pressing
Command-Option with a character is not a simple character so return
false if both modifiers are pressed.
Change-Id: I7698a1ec3178b83c0a1d4e161915246cac08f0ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191205
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit ed45cdaef3d2807d0b9d6a4c08da375fc72024a6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191209
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-21 Justin Luth <jluth@mail.com> [a6091a34e6adcd5780564f55abba40ffd279faa9]
tdf#166406 sw nbb: position LTR and RTL side by side
The worst thing to do to a bug
is to mark it as an easy hack.
That just means it will never be solved.
With the increased push to spotlight the NBB,
these papercuts should be solved ASAP
instead of languishing forever.
Change-Id: I8e5736add29b7db26ada0d671bc00b86d1c45fae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191208
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
(cherry picked from commit 369b726d308270679b792aa21c92bd0b308ec171)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191217
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-20 Jean-Pierre Ledure <jp@ledure.be> [445d1ece2922bd6cf278b35c62cef9bb51879417]
ScriptForge fix tdf#168433 array.ImportFromCSVFile
The import of a CSV-formatted file
into an array fails when specific
combinations of double quotes and
commas (= delimiter) are present.
The
array.ImportFromCSVFile()
method uses internally the
string.SplitNotQuoted()
method for parsing the input
records.
The latter method skips the delimiters
located inside quoted strings.
It was buggy and needed a revision.
Documentation unchanged.
Change-Id: Ie156455b99749c6a8e4f43f4d3c258772904848f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191227
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
(cherry picked from commit cf57cf042aaa863ff6a730e79df1df1a5dbefc9e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191229
2025-09-20 Xisco Fauli <xiscofauli@libreoffice.org> [e5f0dad2b38d2a3902a9cd6b9d434abc206590a4]
tdf#168452: support unicode-bidi in svg
Before this change, getBiDiStrong() was never used
to manipulate the text
Change-Id: I9d6a2e8b79d27126902f2be84174c641ec71c28c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191123
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit f127f708f6ccc941beabaacc7be18daf478a79cd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191133
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-20 Caolán McNamara <caolan.mcnamara@collabora.com> [1c9a034783686f5b4bcbd29b4025d0a43d9a5c83]
Resolves: tdf#156739 implement dnd for menu/toolbar customization pages
dubious as a regression, but can be done now regardless
Change-Id: I67bc322cd63e65b5347b3e54651e3618d09a99b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190917
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit f4e2563012ff091ee27999713063fc87cd01fe7e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190958
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-19 Noel Grandin <noelgrandin@gmail.com> [d3def5d2894170c5832418b5008896c5ad3b82bf]
tdf#166483 special char dialog not available with mergedlibs build
Change-Id: I08cc1fe82845cfea82150e332b0ea0ad597f6cda
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191189
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 9f4304ff2dbb706a1160afd347e538e615e1290f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191191
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-19 Mike Kaganski <mike.kaganski@collabora.com> [1c78cb0673e117136212fea7b51adcf898ff94f5]
tdf#168431: Release solar mutex when sending window message to main thread
It started after commit 1e2e51607a163021ef1fb1fb0d217266bd448173 for some
reason, but the problem is, that the caller code from some thread holds
the solar mutex, and the code that handles the message in main VCL thread
tries to lock solar mutex; and that didn't change.
This change introduces some methods in WinSalInstance, that wrap calls to
SendMessageW, and release solar mutex if the functions are not in the main
thread.
Change-Id: Iac8690acbd306273c92534c6d319cbdf4b799860
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191147
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191183
2025-09-19 Noel Grandin <noelgrandin@gmail.com> [7be45c419d98c4b68bdf359adedd3be6aafc2fcf]
inline Init/ReleaseFrameGraphicsDC
which makes it much more obvious which logic belongs where.
Which fixes leaking WinSalGraphics objects on on error paths.
Change-Id: Ib08c5b365e993d46fdc38a56e20e12c2833a1f85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187851
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191182
2025-09-19 Noel Grandin <noelgrandin@gmail.com> [2a93939b3535c6790eb475aab436a188ca294d01]
remove mnCacheDCInUse
Windows95 has not been supported for some time, we don't need this
limitation anymore.
Change-Id: I52a476bb1da4db8fc8e7a420f049c3f895549fa1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187891
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191181
2025-09-18 Noel Grandin <noel.grandin@collabora.co.uk> [ef0fd8bfab009f939432eb7f24bc6604dcc90caf]
tdf#168344, tdf#166842 do not use FillColor==COL_TRANSPARENT...
.. on OutputDevice if that OutputDevice does not support alpha
Change-Id: I52f8a496127462deecba9cf6fd19f827466d16cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187181
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 878dd795378776253e6c49d58805a219e0b8c33e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191135
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-18 Miklos Vajna <vmiklos@collabora.com> [1f6b2a4d6db61f0ae0f00774b3104cf679c3db4d]
tdf#168325 sw format redline, char style: improve recording
Create a new Writer document with a single word in it, set the Emphasis character
style on it, enable redline record, change char style to Strong
Emphasis, save to ODT. The format redline refers to an automatic style,
while it should refer to the old char style (Emphasis).
This happens because the redline record for format redline works
incorrectly: it not only records the char style (before changing the
char style), but also the expanded value of the char style, which leads
to the creation of an automatic style on ODT export. This doesn't happen
if exporting an originally DOCX file to ODT.
Fix the problem by explicitly asking for the current character
properties in a way so that char styles are not expanded, when making a
copy of the old formatting & storing it in a format redline.
Also drop storing RSIDs in format redlines, they are not interesting and
again would lead to unwanted creation of automatic styles.
Change-Id: Idd34afb1f0570589254a9eb259af4fc3465aec22
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191120
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 0c7eaa023a840a6f0967fe119463a936241a8130)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191138
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-18 Justin Luth <jluth@mail.com> [d24e8a20907bf3e861dad93456d0dea891c3b320]
tdf#168377 sw: avoid crash in redlndlg - index out of range
Everywhere else GetRedlinePos() is used
it is checked against SwRedlineTable::npos
to identify a valid index position.
Change-Id: I46a52a9c7aadab4b1690562c0ba32027cd2dcd2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191121
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
(cherry picked from commit c920581dc81e553a07d0cd27f5d218df39811b6d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191137
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-18 Heiko Tietze <heiko.tietze@documentfoundation.org> [78373e24f4144df9c28e485e89dc86144752719c]
Resolves tdf#168259 - Add "Show Again" checkbox to SaveAs query
This backport also includes the follow-up commit
Resolves tdf#168259 - Hide "Show Again" if readonly
Change-Id: I60b034d43bfe7069319b6dc70b0b9e00cc5e1e45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190553
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191158
Reviewed-by: Justin Luth <jluth@mail.com>
2025-09-18 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [6cc399f63684da0967bd95f9678447110c00f15a]
bump product version to 25.8.3.0.0+
Change-Id: Iebaee6564dde714612e124d06c24225cf87f9384
2025-09-18 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [c316dc790dc64dfd5d82774dd1f66574219bfaed]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to 234344c9b22893272b6be8e30e6fb556a6d9e664
- update translations for 25.8.2 rc1
and force-fix errors using pocheck
Change-Id: Ia769c987fe3a86ccccf9c46be051dcae1a1221e2
2025-09-17 Julien Nabet <serval2412@yahoo.fr> [cb8bf48260a43895cbb5b1c51e13ce9cdf53e69b]
Related tdf#168265: ignore more comments line
1) since 999 indicates a comment section, call DXFSkipLine in case of 999
2) let's consider the case the beginning contains more than 1 comment
Limit: we only sniff 256 bytes to detect the format so if comments are too long
detection won't work
Change-Id: I11a01db49d3faad68c7ab134be0f716767583185
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190865
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
(cherry picked from commit 829f59de4e44a5a2c9888e7ceef439809808f2c0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190870
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-09-17 Patrick Luby <guibmacdev@gmail.com> [87f4a7b3838b6dc5bb740884b9e5132fb98e54f2]
Fix HarfBuzz build breakage when building on macOS Tahoe
Starting in Xcode 26, compiling with -D_LIBCPP_ENABLE_ASSERTIONS will
fail due to a change made by Apple.
HarfBuzz uses meson to define the macros needed to build HarfBuzz
and meson 1.7.2 and 1.8.0 still emit -D_LIBCPP_ENABLE_ASSERTIONS.
So upgrade the internal meson to 1.8.3 (i.e. the first version that
is compatible with Xcode 26) and use the internal meson if building
with Xcode 26 or higher and the external meson version is too old.
Change-Id: I0d3545b0b1a22156179fec1382260adca1e9221c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188863
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
(cherry picked from commit 26c44f98d0ab203090d5b634853ec1177b6d1977)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190770
2025-09-17 Jonathan Clark <jonathan@libreoffice.org> [2ef84ee2e6856b5a4729f0f59f8c02f2e1106e9d]
tdf#168424 editeng: Fix unsafe s/uint implicit cast in RTF parser
The editeng RTF parser was round-tripping signed integers through a
sal_uInt16 via implicit casts when populating SvxLRSpaceItem. This
worked because such an implicit cast may convert signed numbers into
their unsigned two's complement representation, and vice-versa.
Unfortunately, a recent change to SvxLRSpaceItem replaced the final
implicit uint-to-sint cast with an implicit uint-to-double one, which
does not have the same properties.
Change-Id: I80b1a36c47323309b33a8ddaee652c238a7530f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191052
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
(cherry picked from commit c93d70db199cc7f89490cf9f34aa43ea67892c52)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191100
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-17 Mike Kaganski <mike.kaganski@collabora.com> [72dbdf4f967770e790ab31cb1b22b70686c61993]
tdf#168423: Allow subnormals from strtod
dtoa sets ERANGE with subnormals. We need to support these, so check
for infinity and zero explicitly, and allow other results. NaNs can't
appear here.
Change-Id: I006a42ebff03b07d219b423c13bf8230348e1def
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191071
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit a3aaa11db039675252fe9d5bc4a9d43be34940e8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191093
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-17 Dan Williams <dan@ioncontrol.co> [bc60c90e73b2e8d3c0bdfe6dad087ea5e51ac240]
connectivity/macab: use CoreFoundation instead of Carbon
The Mac address book connector doesn't actually use Carbon,
so just import/link to CoreFoundation.
Signed-off-by: Dan Williams <dan@ioncontrol.co>
Change-Id: I17f42ba6a9355d45ed5c7c60214cb50d803ffbc2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191051
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
(cherry picked from commit 4dc20af89779241eeae85f61b32a9b1d85c6da3e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191094
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-09-17 Dan Williams <dan@ioncontrol.co> [dec1441f716c7631622b9b3e32fdbc666502c006]
vcl/sal: remove unecessary Mac OS includes and linkage to Carbon
A number of places that #include <Carbon/Carbon.h> don't actually
need it, but want CoreFoundation or other includes instead. We're
trying to get rid of Carbon so let's make it clearer what really
needs it still.
Change-Id: Ief60b4324dccd936aa7def3ea2c685c393f9050a
Signed-off-by: Dan Williams <dan@ioncontrol.co>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191030
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
(cherry picked from commit db3d15e46324ef4fcb9aee0b760f923f9a4fa231)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191098
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-09-17 Xisco Fauli <xiscofauli@libreoffice.org> [f374a9821b22e900ef6b05d652e4f2b0786b42dd]
harfbuzz: upgrade to 11.5.0
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/11.5.0/harfbuzz-11.5.0.tar.xz
Change-Id: I73db5e0de6c78898a8cca957c203b6e5961271c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190950
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit c301b1e14bd5854f12b6b8ad2bed5ff7dd1d5821)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190957
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-09-17 Xisco Fauli <xiscofauli@libreoffice.org> [48b650d50070cd1bff391aef53f781c16899d92d]
sd: use SAL_RET_MAYBENULL in GetSlideSorter
Change-Id: I2f71942aeaa7aa1cc78be69d63a94588099ad4d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190821
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190877
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-09-17 Xisco Fauli <xiscofauli@libreoffice.org> [6b8479d71863b015d0d8bcbd292791f07857b2fa]
tdf#168363: check SlideSorterViewShell
After
commit 7dddd449068d69ec2f47bfca2487f01fa7067fd0
Author: Pranam Lashkari <lpranam@collabora.com>
Date: Tue Apr 15 21:19:43 2025 +0530
sd: copy slides from instance to another
Change-Id: I77a315981c0178144c985b29b4ebb733e42bd000
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190820
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit fd10eb45fdb95f2fc3386ef7ee1423279d764ac3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190824
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-09-17 Xisco Fauli <xiscofauli@libreoffice.org> [9d3eb682d30c4e7e37bc844109746b711343f025]
mariadb-connector-c: upgrade to 3.3.17
c23.patch.0 has been fixed upstream
Downloaded from https://dlm.mariadb.com/4441363/Connectors/c/connector-c-3.3.17/mariadb-connector-c-3.3.17-src.tar.gz
Change-Id: Idf813aa383f22b8ae22ac92e23fc0ffa78050f38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190795
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190808
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-09-17 Xisco Fauli <xiscofauli@libreoffice.org> [03a4361a7685ba2e104704c92ab09cc1b9cc648e]
curl: patch CVE-2025-9086 and CVE-2025-10148
More info in https://curl.se/docs/CVE-2025-9086.html
and https://curl.se/docs/CVE-2025-10148.html
Change-Id: Ib4993a00efdabf0baa3fe0e25c66d850f370572a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190741
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190751
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-09-17 Julien Nabet <serval2412@yahoo.fr> [fc1b29c610274e636f317e36e4d8d39b16c54185]
Update git submodules
* Update helpcontent2 from branch 'libreoffice-25-8'
to 5ea29a8c84b5c4607092f92bf4c97106e1e6e2d0
- tdf#167789: fix date format for COUPPCD result
Change-Id: I8a131751ad4e329834b3a97d30fbbf46c317e4cb
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/188871
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
(cherry picked from commit 7db5e16a2bd98ea0c1cd4d9cbe1a00cf715461a8)
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/190727
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-09-17 Xisco Fauli <xiscofauli@libreoffice.org> [38b6906b5cd044cfd6f4ef594848f0a1f9952ee1]
crashreport: avoid crash in InspectorTextPanel
define FN_HIGHLIGHT_CHAR_DF in sfx2 like the
other spotlight slots and rename it accordingly
Seen in https://crashreport.libreoffice.org/stats/crash_details/a6200006-147e-4829-9293-93de0487133b
Since
commit 0d0e5c72e6344de48227b74846a6ff638b803c64
Author: Karthik <me@karthikreddy.org>
Date: Mon Mar 10 13:34:39 2025 +0530
tdf#160194 Add 3 checkboxes in Style InspectorPanel
Change-Id: I108fcbf39c8f6879258c9804f7f5a15313d259ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190684
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 6fc54eea2f904a6704495f6b53fd5eff0dff1496)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190721
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-09-17 Xisco Fauli <xiscofauli@libreoffice.org> [c5005923f103123a089ce24103cbe7b6d4627bac]
expat: upgrade to 2.7.2
Downloaded from https://github.com/libexpat/libexpat/releases/download/R_2_7_2/expat-2.7.2.tar.xz
Change-Id: Icf4b730291dfecc039024360b36c2fe8adb247fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191047
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 953f1da9270dc10d4aa7852a91e22e4483751aba)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191054
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-09-17 Xisco Fauli <xiscofauli@libreoffice.org> [82975b83ecdac9256ee52bcd42b5cd394f8cb384]
nss: upgrade to 3.116
0001-Bug-1983399-lib-softtoken-sdb.c-sftkdbti.h-Align-sft.patch.1 has
been fixed upstream
Downloaded from https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_116_RTM/src/nss-3.116-with-nspr-4.37.tar.gz
Change-Id: I61f7efe779c89ca00e6698dd834cf282ea43f5d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190960
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit c46712bcd7a6f811aa406f2db97d94d3d1b67350)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190969
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-09-17 Stephan Bergmann <stephan.bergmann@collabora.com> [fb9337d51a3988f9b09aaca567b205a6917b9b4e]
external/freetype: Avoid signed-integer-overflow
...presumably after 981d8be918a7002ef4239244c8524dc73f0b5fd8 "freetype: upgrade
to 2.14.1", causing e.g. CppunitTest_chart2_pivot_chart_test to fail with
> workdir/UnpackedTarball/freetype/src/autofit/aflatin.c:3708:31: runtime error: signed integer overflow: 2161 - -9223372036854775808 cannot be represented in type 'FT_Pos' (aka 'long')
> #0 in af_glyph_hints_apply_vertical_separation_adjustments at workdir/UnpackedTarball/freetype/src/autofit/aflatin.c:3708:31
> #1 in af_latin_hints_apply at workdir/UnpackedTarball/freetype/src/autofit/aflatin.c:5054:9
> #2 in af_loader_load_glyph at workdir/UnpackedTarball/freetype/src/autofit/afloader.c:411:17
> #3 in af_autofitter_load_glyph at workdir/UnpackedTarball/freetype/src/autofit/afmodule.c:498:13
> #4 in FT_Load_Glyph at workdir/UnpackedTarball/freetype/src/base/ftobjs.c:1055:19
> #5 at <null> (/lib64/libcairo.so.2 +0x9be4b)
> #6 at <null> (/lib64/libcairo.so.2 +0xa0df1)
> #7 at <null> (/lib64/libcairo.so.2 +0x528b6)
> #8 at <null> (/lib64/libcairo.so.2 +0x57184)
> #9 at <null> (/lib64/libcairo.so.2 +0x179f6)
> #10 at <null> (/lib64/libcairo.so.2 +0x1a5f7)
> #11 at <null> (/lib64/libcairo.so.2 +0x27459)
> #12 at <null> (/lib64/libcairo.so.2 +0x701c8)
> #13 at <null> (/lib64/libcairo.so.2 +0x22a8b)
> #14 in cairo_show_glyphs at <null> (/lib64/libcairo.so.2 +0x78a7d)
> #15 in CairoTextRender::ImplDrawTextLayout(_cairo*, Color const&, GenericSalLayout const&, CairoCommon*, bool) at vcl/unx/generic/gdi/cairotextrender.cxx:517:9
> #16 in CairoTextRender::DrawTextLayout(GenericSalLayout const&, SalGraphics const&) at vcl/unx/generic/gdi/cairotextrender.cxx:292:5
> #17 in SvpSalGraphics::DrawTextLayout(GenericSalLayout const&) at vcl/headless/svptext.cxx:74:23
> #18 in GenericSalLayout::DrawText(SalGraphics&) const at vcl/source/gdi/CommonSalLayout.cxx:314:18
> #19 in OutputDevice::ImplDrawTextDirect(SalLayout&, bool) at vcl/source/outdev/text.cxx:311:16
> #20 in OutputDevice::ImplDrawText(SalLayout&) at vcl/source/outdev/text.cxx:464:9
> #21 in OutputDevice::DrawTextArray(Point const&, rtl::OUString const&, std::span<double const, 18446744073709551615ul>, std::span<unsigned char const, 18446744073709551615ul>, int, int, SalLayoutFlags, SalLayoutGlyphs const*) at vcl/source/outdev/text.cxx:750:9
> #22 in ScOutputData::LayoutStringsImpl(bool, RowInfo*, short, int, unsigned long, std::optional<short>&, std::optional<short>&, short, std::__debug::vector<std::unique_ptr<ScPatternAttr, std::default_delete<ScPatternAttr>>, std::allocator<std::unique_ptr<ScPatternAttr, std::default_delete<ScPatternAttr>>>>&, ScPatternAttr const*&, SfxItemSet const*&, SvtScriptType&, ScDrawStringsVars&, bool&, long, long, bool, bool&, vcl::PDFExtOutDevData*, long, std::__debug::vector<double, std::allocator<double>>&) at sc/source/ui/view/output2.cxx:2248:28
> #23 in ScOutputData::LayoutStrings(bool) at sc/source/ui/view/output2.cxx:1565:17
> #24 in ScOutputData::DrawStrings(bool) at sc/source/ui/view/output2.cxx:1487:5
> #25 in ScPrintFunc::DrawToDev(ScDocument&, OutputDevice*, double, tools::Rectangle const&, ScViewData&, bool) at sc/source/ui/view/printfun.cxx:604:17
> #26 in ScDocShell::Draw(OutputDevice*, JobSetup const&, unsigned short, bool) at sc/source/ui/docshell/docsh4.cxx:2656:9
> #27 in SfxObjectShell::DoDraw_Impl(OutputDevice*, Point const&, Fraction const&, Fraction const&, JobSetup const&, unsigned short, bool) at sfx2/source/doc/objembed.cxx:204:5
> #28 in SfxObjectShell::DoDraw(OutputDevice*, Point const&, Size const&, JobSetup const&, unsigned short, bool) at sfx2/source/doc/objembed.cxx:151:9
> #29 in SfxObjectShell::CreatePreview_Impl(bool, bool, VirtualDevice*, GDIMetaFile*) const at sfx2/source/doc/objcont.cxx:201:40
> #30 in SfxObjectShell::GetPreviewBitmap() const at sfx2/source/doc/objcont.cxx:113:9
> #31 in SfxObjectShell::WriteThumbnail(bool, com::sun::star::uno::Reference<com::sun::star::io::XStream> const&) at sfx2/source/doc/objstor.cxx:4157:29
> #32 in SfxObjectShell::GenerateAndStoreThumbnail(bool, com::sun::star::uno::Reference<com::sun::star::embed::XStorage> const&) at sfx2/source/doc/objstor.cxx:4112:33
> #33 in SfxObjectShell::SaveTo_Impl(SfxMedium&, SfxItemSet const*) at sfx2/source/doc/objstor.cxx:1839:19
> #34 in SfxObjectShell::PreDoSaveAs_Impl(rtl::OUString const&, rtl::OUString const&, SfxItemSet const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) at sfx2/source/doc/objstor.cxx:3421:39
> #35 in SfxObjectShell::CommonSaveAs_Impl(INetURLObject const&, rtl::OUString const&, SfxItemSet&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) at sfx2/source/doc/objstor.cxx:3212:9
> #36 in SfxObjectShell::APISaveAs_Impl(std::basic_string_view<char16_t, std::char_traits<char16_t>>, SfxItemSet&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) at sfx2/source/doc/objserv.cxx:323:19
> #37 in SfxBaseModel::impl_store(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, bool) at sfx2/source/doc/sfxbasemodel.cxx:3253:42
> #38 in SfxBaseModel::storeToURL(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) at sfx2/source/doc/sfxbasemodel.cxx:1834:13
> #39 in UnoApiTest::saveWithParams(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) at test/source/unoapi_test.cxx:194:16
> #40 in UnoApiTest::save(rtl::OUString const&, char const*) at test/source/unoapi_test.cxx:178:5
> #41 in UnoApiTest::saveAndReload(rtl::OUString const&, char const*) at test/source/unoapi_test.cxx:199:5
> #42 in PivotChartTest::testRoundtrip() at chart2/qa/extras/PivotChartTest.cxx:354:5
Change-Id: I6bb42532fce1291b4208108ab1898b94dda02e68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191043
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
(cherry picked from commit a8133d29ce58ab775319e837477c649489182d6d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191064
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-17 Xisco Fauli <xiscofauli@libreoffice.org> [bb9d1f33d7ab595c67fe68c69993923cd006c8fb]
freetype: upgrade to 2.14.1
Downloaded from
https://sourceforge.net/projects/freetype/files/freetype2/2.14.1/freetype-2.14.1.tar.xz/download
Change-Id: I278d52399dbfe1e0895e481417dda493d35aeefa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190826
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 981d8be918a7002ef4239244c8524dc73f0b5fd8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190837
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-17 Xisco Fauli <xiscofauli@libreoffice.org> [7de70bdfeb70075800535bdf173941ba8e5cdc38]
tdf#168378: invert text anchor in RTL
Change-Id: Ia9b7e526ab20cbcdb521f965a5a2dc0726894209
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191018
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191031
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-17 Xisco Fauli <xiscofauli@libreoffice.org> [ae88cf4bc2b69282509128663f54e8c836e15c01]
tdf#168421: support RTL text direction in svg
Change-Id: Iba8853d131bf88be3cc94003a73ffe545cf62004
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190978
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 4efae74abc8e7cefe2d7d0c3c55653dc269b8727)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191004
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-17 Andreas Heinisch <andreas.heinisch@yahoo.de> [a0ec84c050855840f7a829dd7fe6e56fd72d960a]
tdf#165846 - Ensure degrees of freedom (nu value) is greater than 0
Change-Id: I900d0b5436bc9417e4f91eac1434c8ae79bd70a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190988
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
(cherry picked from commit dedaf2a87bca8b903fc42f441c7185921cf03312)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191048
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-17 Laurent Balland <laurent.balland@mailo.fr> [a2ca00636df4f3a709b061ce66fdd0b68a5ac62e]
tdf#168318 Revert "Rezing SdrObject: Remove duplicate code"
This reverts commit edd0991c3cc1c5ae439e33873c2567ee62d0e710.
Reason for revert: unexpected behavior for rotated object (see tdf#168318)
Change-Id: Ie83c8d35dba12ff7eca7429efb0ff195eacd205b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191041
Tested-by: Jenkins
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
(cherry picked from commit 183941f9e0668b0963e0157f2d9c414b58741fd6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191053
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-16 Caolán McNamara <caolan.mcnamara@collabora.com> [91b8c95717f343a47170d0316d46c5707905b7fc]
cid#1665431 Dereference null return value
Change-Id: Icba6d8bdc8f07c8125c7c4784f93c19dd7d1bd7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191000
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 33f5ab817202b06af061ee3866f3b4013bdbcd27)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191027
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-15 Michael Stahl <michael.stahl@collabora.com> [4666d701312615b43e698f67e3443dc1a13dcf20]
sw: PDF export: fix crash on section in table in section
soffice.bin: vcl/source/gdi/pdfextoutdevdata.cxx:798: void vcl::PDFExtOutDevData::EndStructureElement(): Assertion `mpGlobalSyncData->mCurrentStructElement != 0' failed.
The problem is that the parent-opening code in
SwTaggedPDFHelper::BeginBlockStructureElements() when called for a
section in a table cell opens a section that is outside the table.
In this case, there are actually 2 section frames, one containing the
table and one in the table cell, so reopening the outer section frame
that is already on the stack ends up restoring a 0 parent SE and that
triggers the assert.
(regression from commit d5f68529a79c615f989fcfeef248d887a6e10f5a)
Change-Id: Idd5be655345f96e1c2de84c5623f6e1dba4aae1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190781
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 7a036a64581a96a05e4833611801ac304d75524f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190817
Reviewed-by: Thorsten Behrens <thorsten.behrens@collabora.com>
2025-09-15 Jonathan Clark <jonathan@libreoffice.org> [6c35c61ff2e1ae0b238fbf578aff1188ba18dbf4]
tdf#167873 i18npool: Port CJ brkitr customizations from ICU upstream
Upstream ICU includes non-standard rule extensions for Chinese and
Japanese, which add line breaking opportunities between U+201C/U+201D
double quotation marks and leading/trailing CJK ideographs. This change
backports those rule customizations, for correct layout of Simplified
Chinese.
Regression from:
commit 5a03d511f46ecc05aab35bb29e714b46f5638b1b
Author: Jonathan Clark <jonathan@libreoffice.org>
Date: Mon Apr 7 21:37:26 2025 -0600
tdf#130592 i18npool: Fix incorrect line breaking in mixed CJK+Latin
Change-Id: I3cf6c0cd23e38f9a89c98fdd6c6f665f175b676c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190904
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
(cherry picked from commit 01c934f7bc6ecc18d7efcbcfb1f58f05ebda3bef)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190947
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-15 Mike Kaganski <mike.kaganski@collabora.com> [26e4e0393b1cce113a3a20436f77a6eb0ef8b350]
Related: tdf#168355 Optimize the fix
Inspired by the code I found in sw::HasPageBreakBefore, the change
finds the frame that may provide the page description information
once.
Change-Id: Ie16b93d97e5a32e2991d68aa9c605fc0a411c1f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190873
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit a11d059702b349f2ca520414b73785b127e8837a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190902
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-15 Caolán McNamara <caolan.mcnamara@collabora.com> [f8aa0ff0e7eb08d5822858688dc525ec0201b09e]
Resolves: tdf#168306 set current line width at popup time
Change-Id: I82c8151566459d1429cd3b4517b43ace3fbeca60
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190934
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 830a06afe26279edc3527ccdecb5c9e2b347cfd5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190935
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-12 Miklos Vajna <vmiklos@collabora.com> [6de684d777ccfb2a1b6f43081ca7fb53115e21d0]
tdf#168321 sw format redline, direct: fix ODF strict export
Save the bugdoc in strict ODF, the exporter crashes due to an assertion
failure.
What happens is that strict ODF doesn't add the loext namespace alias to
the alias list, so we crash when we would write an loext attribute.
Fix the problem by simply throwing away the direct format of a format
redline when saving to strict ODF, just to please the validator.
If we're at it, also don't register the direct format of the format
redline in the autostyle pool in that case, since it would be
unreferenced anyway.
Change-Id: I0de9ee114be9ef67f97716cf5fd9aaa9f8757683
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190851
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 5248afb9b630b5902936ea8a2f5c87248cb36dd3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190871
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-12 Jonathan Clark <jonathan@libreoffice.org> [01c95615899fbcf33b49b2833e709dec9de71632]
tdf#168263 editeng: Fix wrong max ascent for text without ruby
Editeng must adjust the maximum ascent of lines to accommodate ruby
characters. This adjustment is only necessary when ruby characters are
actually used, and the intention was to only apply the adjustment in
that case. Unfortunately, due to an implementation error, this
adjustment was instead performed for any line containing formatting.
Change-Id: Ibd4ea3cda8b40c95f41f1d84b47155455a20a1cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190784
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit f166009a3b62e680c993d033a97e4a24a65ceaa1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190846
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-12 Mike Kaganski <mike.kaganski@collabora.com> [1860380514437f4115abdd5fa2a5138a40c10f6d]
Use a bit more standard null date in lcl_normalizeDateTime
This value is only used for dates comparison inside ODateTimeType;
_getValue is used in OValueLimitedType_Base::_validate to comnpare
to minimal and maximal cached values, and the latter are set using
normalizeValue. The choice of null date is ~random, and in theory,
we could just normalize using Date::GetAsNormalizedDays(), but the
null date close enough to the actual dates has an upside of keepng
enough precision for time part - so just use the most used epoch,
which gives an optimized GetAsNormalizedDays, and hence, a faster
operator-.
Change-Id: I35723373107b2786633c7ddb3cfb82a7dcc4deaa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190827
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 89b0b449d8f64aef0a15fe9d1485061a91da7150)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190859
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-12 Mike Kaganski <mike.kaganski@collabora.com> [8560e494a2263fdddb648073601b9e409556e76e]
Use a bit more standard null date
The two places in cellvalueconversion.cxx using the null date were
introduced in commit a7e949673cda3f0e2abfa49b2c22735f33205d01
(gridfixes: #i117265# use a NumberFormatter for converting cell
values to text., 2012-09-14); they are used together, so that the
code in lcl_convertDateToDays uses the same epoch as defined in
the respective number formatter, and the obtained number value is
only ever used inside convertToString in a call to the formatter's
convertNumberToString. The old value was arbitrary; and the new
value has some optimizations in the code (see Date::DateToDays and
comphelper::date::convertDateToDaysNormalizing called from it).
Change-Id: I9c050d26ace1cf3fccde579d0d91c00f26bb3fd8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190788
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit c6af3d93b6f2603f7ea6c898742876198ca557e1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190858
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-12 Noel Grandin <noel.grandin@collabora.co.uk> [38f5d984658c42c6d69b658d623bbeb64a94ce23]
tdf#168355 Page break with page style with page number in table
regression from
commit 7d924018f3ea58050081936bde067391714a8bb5
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Fri Jul 19 10:44:10 2024 +0200
don't use GetItemSurrogates in SwFrame::GetVirtPageNum
Change-Id: Ibdc223842013ad11b56f402571f276de38a01f6a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190814
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 46720a15474c6c6cfbbb78ff15b446fbd004120c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190855
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-12 Bartosz Kosiorek <gang65@poczta.onet.pl> [be9d6e414e4b38dba5897a78d883e92d64b701bd]
tdf#159306 WMF/EMF Fix PS_COSMETIC lines display
Change-Id: I3a2572a76aae61bcf8552e4623168cd72411373a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190816
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
(cherry picked from commit b33cc5a7388c1739ff4a02a84751800f3e3086ce)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190845
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-11 Justin Luth <jluth@mail.com> [abdfd11e6b0dc814190e13a24bb78479a871aca2]
tdf#142785 stashedFooter: fix copy/paste error
Change-Id: I1455420a9bc8566648aee8972b47e0408e1255da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190811
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
(cherry picked from commit 0bcce63a97e0d51638746267e11c7a8f4936c9e2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190819
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-11 Andras Timar <andras.timar@collabora.com> [828197667b78b3b4e4b332d22832ace26a75de56]
Fix git hash link in About box
Change-Id: Ieccb41f3ca9909c452101883d4c295815ee9d185
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184820
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit ca33fc45edbc9e7f330f14513c53f83c73e78835)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188429
Reviewed-by: guilhem <guilhem@libreoffice.org>
Tested-by: Jenkins
Tested-by: guilhem <guilhem@libreoffice.org>
(cherry picked from commit 680b8eca27d6e3a160a147caf8314a81c430c7b7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190789
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-11 Mike Kaganski <mike.kaganski@collabora.com> [8eeb11aba618d6333b254b05749bba9d6235827f]
tdf#168252: fix "standard" date in SwDBField::FormatValue
... after commit 5b808448dc79e996efa7cb5082145d4e5803daa6 (Related:
tdf#167591 Make STANDARD_DB_DATE more standard, 2025-07-21).
Change-Id: I3bbe87c77aafb44cf53bc43613eeb3eb975b42f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190749
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 92f0eeef847bb8c980aef1760c3355df0e2e11ef)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190777
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-11 Mike Kaganski <mike.kaganski@collabora.com> [40f481b9c4d3cdcb5621002064ac89578ed6dece]
tdf#168347: fix "standard" date in SwInsertDBColAutoPilot::DataToDoc (1)
This fixes DB_Column::Type::COL_TEXT case.
Change-Id: I2b758000b49ae8d1729f3ce61b066f5d0eeb434b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190756
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit cda403f39b5db9074917819e60a2e16744136c11)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190778
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-11 Mike Kaganski <mike.kaganski@collabora.com> [9b34799cb351ad1d6e8567ce4a8f6e99006e7fb3]
tdf#168349: fix "standard" date in SwInsertDBColAutoPilot::DataToDoc (3)
This fixes bAsTable case.
Change-Id: I48febf1def0198b9a7275fe4167e19287a0d1e19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190758
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 24b2d4d00c8ed5cfc1d16000dd8a0048271e9c22)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190780
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-11 Mike Kaganski <mike.kaganski@collabora.com> [5968a8dea226aa5c23dcad5cccfbd41eac241e6e]
tdf#168348: fix "standard" date in SwInsertDBColAutoPilot::DataToDoc (2)
This fixes DB_Column::Type::COL_FIELD case.
Change-Id: I1566f69bb38a2fda9a0c0c48d8662b7b4ddf3682
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190757
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit d85d3c3c7ccced49e1f2d3d6c754310a1d44fefe)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190779
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-10 Xisco Fauli <xiscofauli@libreoffice.org> [f85cea0eaf76993cada69db255b76330e610e8df]
poppler: upgrade to 25.09.1
Downloaded from https://poppler.freedesktop.org/poppler-25.09.1.tar.xz
Change-Id: I665369d8e942af1ad81dad9368c5ba6e3e5fe4fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190663
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 0563d0e3581b5029cfe9476d5b5313d6322c5e08)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190675
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-10 Xisco Fauli <xiscofauli@libreoffice.org> [76c46996977814f5f0b2d5621d21740cf32b22a1]
libatomic_ops: upgrade to 7.8.4
Downloaded from https://github.com/bdwgc/libatomic_ops/releases/download/v7.8.4/libatomic_ops-7.8.4.tar.gz
Change-Id: If970693689dd488b2e794582ccfaffcc97388c3a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190672
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 7ca639f67bbf1c953b8e81d5e59c031fd4bb007d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190676
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-10 Xisco Fauli <xiscofauli@libreoffice.org> [421f29ea481b5b75ddbb4fe4385cb20172d68f16]
libxml2: upgrade to 2.14.6
9de92ed78d8495527c5d7a4d0cc76c1f83768195.patch.1 has been fixed upstream
Downloaded from https://download.gnome.org/sources/libxml2/2.14/libxml2-2.14.6.tar.xz
Change-Id: Ibfd34613bc74644830b2e45c32c16462e7c7bd32
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190720
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 5e9caecd24636664d3de0a1eff06df540aa70fc4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190722
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-10 Michael Stahl <michael.stahl@collabora.com> [9e13361a61d773caff45b99301df771ea76d545a]
tdf#166319 schema: limit change nesting to what is actually supported
Change-Id: Ie574377ea9cdd90ed9261229abaca480b4010440
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190738
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit e21f78274d9620b05f43a520b3922a375b271a12)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190771
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-10 Julien Nabet <serval2412@yahoo.fr> [5389294d747f8ca3d964f126cab627eb89c4ec91]
Related tdf#168265: fix DXFGroupReader::ReadF
Change-Id: I9a316a2b01b7726e679cecb0121e650ee49d6ba3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190646
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
(cherry picked from commit 1d6298f1c64a8ba6c6634335960d2b247d0d2f30)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190652
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-10 Julien Nabet <serval2412@yahoo.fr> [f9eacf3d535e3dac7c1f30a5f74f4ff7a77a94be]
tdf#168265: pass comment (999) section to detect dxf file
Change-Id: I6d54e4dcc578792bd122e24743f41c0049974a2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190632
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
(cherry picked from commit b5044aa84af207dc44944c9ad51847b50e7f43b1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190653
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-10 Miklos Vajna <vmiklos@collabora.com> [e1e36df4fc2e7b8aaca82bbb00cfb9a414b0385a]
tdf#167761 sw format redline, char style+direct: add ODT import
Open the bugdoc, it contains a format redline that changes the character
style from Strong to Quote and the font size from 24 to 36. Revert the
redline, the char style goes back to Strong, but the font size is 12,
not 24.
The problem is that only the char style was imported in
XMLRedlineImportHelper::InsertIntoDocument(), because direct formatting
is only handled when we have no char style.
Fix the problem by creating an empty item set earlier, similar to how
lcl_SetRedline() does it in the UI code, then both the char style and
direct format can go into that item set.
The format redline's ODT/DOCX filter is now in a reasonable shape with
this.
Change-Id: I28e2a43e218a319045649612e7492821e72649b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190551
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit bbebb3908ff9a9c384a475737ead537906517387)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190556
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-08 Olivier Hallot <olivier.hallot@libreoffice.org> [a9f2c97b50ea9a09b36c7017f24ec44e7179d9bf]
Update git submodules
* Update helpcontent2 from branch 'libreoffice-25-8'
to 3c31af841dcf3e598e298fd732e0dbef68f0f6ec
- tdf#164395 Fix bookmarks in Appearance Help page
Change-Id: I1b9c5a6de2a92f015fa4cb7af805dda5ebc8d4c9
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/190647
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
(cherry picked from commit 90b899e2b244457140c9084f69bd930a14715f27)
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/190648
Reviewed-by: Vernon, Stuart Foote <vsfoote@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-08 Xisco Fauli <xiscofauli@libreoffice.org> [9cf9b26992d6fbf8f9090666145f929b950feae1]
freetype: upgrade to 2.14.0
Downloaded from
https://sourceforge.net/projects/freetype/files/freetype2/2.14.0/freetype-2.14.0.tar.xz/download
Change-Id: If11ce5186689702496754b4668fedbaed14ab287
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190660
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit b732868bd612d3b046ab395d9db69b5d92b6f984)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190666
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-08 Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com> [b51bf2b747533f540e9fbb746096d52cea182e1e]
tdf#167897 Fix save/export directory preselection with empty user profile
In the case of an empty user profile, the logic to display
the correct directory was twisted.
This also reverts the fix for tdf#165228
since the root cause now has been fixed.
Change-Id: I0e33c53b7e1d8a7366caad0e1375a2f95a3ae313
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190655
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com>
(cherry picked from commit 67ea1fc544a0651e8da78531cfa3525f72c434ef)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190665
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-08 Miklos Vajna <vmiklos@collabora.com> [dccbc10c314b6d81b0f1480fdbe68d5668bb2f69]
tdf#168221 DOCX import, altChunk: fix lost header/footer
Open the bugdoc, first page should have a header, but it has no header.
This went wrong in 32c322e9d037b29ded2297b400a2c596c042f1fa (DOCX
import, altChunk: fix missing page break, 2020-10-26), the problem is
that somewhat similar to copy&paste, the altChunk mechanism drops styles
from the inner document: the section breaks in the middle of the
document are wanted, but the final section break is not wanted.
So fix the problem by restricting when
SectionPropertyMap::CloseSectionGroup() sets the page style name:
instead of always doing that for alt chunks, only do it for non-last
section breaks.
This keeps the old page break case working and fixes the new, lost
header problem.
Change-Id: I5fc2a3d0561795612d39e50d780c7f78757486e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190625
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 4607c8d67ec3583c5a3e017bf1fa6fc7514a1674)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190657
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-05 Xisco Fauli <xiscofauli@libreoffice.org> [10f5e8a68080b2d04d2e07a72369d09f58b1f354]
libjpeg-turbo: upgrade to 3.1.2
Downloaded from https://github.com/libjpeg-turbo/libjpeg-turbo/archive/refs/tags/3.1.2.tar.gz
Change-Id: I7c2916d73f55fb3f4f3a50e8eeffbaafc63dca6d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190591
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 678a97e17782b0fd1fc779b10763ebce45bf8cf8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190602
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-05 Xisco Fauli <xiscofauli@libreoffice.org> [7848e02819c007026952a3fdc9da0961333dc079]
poppler: upgrade to 25.09.0
Downloaded from https://poppler.freedesktop.org/poppler-25.09.0.tar.xz
Change-Id: Ic7f3abd64d129543dcdc370816a0d69e5a59be90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190513
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190523
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-04 Mike Kaganski <mike.kaganski@collabora.com> [27212d679af27c99faf6ddd3b4efc8c9390164cd]
tdf#108791: Ignore deleted comments in redlines of non-native documents
ODF (and its native applications) can properly handle redline data of
deleted comments. Other formats (or rather, respective applications
like MS Word) don't understand the "comment anchor deletion" markup,
and show the deleted comment as normal.
Commit 419b70b5d4db227509614bdea5b4b89bcf7a6032 (tdf#105485 DOCX: import
deleted comments as deleted, 2019-08-26) had implemented correct round-
trip of the redline through DOCX. However, since Word doesn't support
that, it created a situation when users can't correctly collaborate on
documents.
This change introduces a special handling of all non-native file formats
in Writer, where deletion of a comment is handled just as in Word: it is
deleted immediately, instead of marking as deleted. This doesn't affect
deleting ranges of text, which contain comments: they are handled by
both Writer and Word correctly.
The solution works without any compatibility flags. This allows to have
consistent behavior (same types of files will work the same way on all
systems), zero configuration, and maximum functionality using native
formats, unaffected by any settings.
Change-Id: I2f8d3caaecd78af38e11a1ab6900d0afd73ed614
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190376
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 3bf75e92e9ea089b707cb4e163def156ad28f7e0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190542
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-04 Mike Kaganski <mike.kaganski@collabora.com> [831dc39f045b909b03dcff300c31986a06ad5502]
tdf#168131: don't pick hybrid PDF, when normal PDF was detected
When a standard PDF is dragged onto a spreadsheet, a matcher is
created in ScViewFunc::PasteFile, with current document service.
Inside GuessFilterControlDefaultUI call, queryTypeByDescriptor
detects pdf_Portable_Document_Format type, and draw_pdf_import
as filter. Detection in PDFDetector::detect checks for embedded
hybrid stream, and if found, it would return one of "addstream"
filter names; and when we get a simple "*_pdf_import", it means
that hybrid PDF was not detected.
But SfxFilterMatcher::GuessFilterControlDefaultUI tried to find
a filter for the detected file type, that matches the document
service. It listed all filters for the type, and found the only
filter that matched Calc: calc_pdf_addstream_import, which is for
hybrid PDFs.
This change makes an explicit check, that when original detection
was for a normal PDF, we don't pick hybrid PDF filter.
Change-Id: Ibab8c9ccaf97637eebbf9f93b8618d9d5f2fe73d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190274
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit dfb5639721031bcc43905576e84a97bed512567e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190293
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-04 Xisco Fauli <xiscofauli@libreoffice.org> [cdfed7bd0dc1124c925b3664ac5d9ff13c945121]
sfx2: check SfxViewShell::Current()
Seen in https://crashreport.libreoffice.org/stats/crash_details/4aabe4e5-c568-4fa8-bcbf-6fb787cd603a
Regression after
commit a4349c502eb2169b3f83d58e49a7871a341daf76
Author: Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com>
Date: Thu Aug 7 10:51:48 2025 +0200
tdf#167845 Don't preselect the template path
Change-Id: If816b4d5aa8810028de682a79a2e37ac2855c250
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190477
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Jenkins
2025-09-04 Neil Roberts <bpeeluk@yahoo.co.uk> [166e4c13b579fc43ba7144c0b78a1cde39d2df6c]
tdf#121253 Remove the default menu new document shortcut keys on MacOS
The default menu on MacOS is displayed when there are no windows or on a
dialog box with no parent. Previously there were hardcoded shortcut keys
to create new documents. As reported in tdf#121253, one of these is ⌘A
which ends up being inconvenient because that is commonly used to select
all the text in a text box. This had the effect that if you tried to use
that shortcut in some dialogs then the dialog would seem to disappear
and be replaced by the new database wizard.
The hardcoded shortcuts were added in 6efdd1444810 which is a patch from
January 2025. Before that the shortcuts were generated based on the menu
item title. ⌘A ends up being used for the database because ⌘D is already
used for a new Draw document and it just picked the next letter along.
These shortcuts were added in 2008 with ba57ba32e8054ec.
This patch removes the shortcuts for the default menu in both the copied
version of the start center menu and the original default menu generated
in code. It seems strange to have shortcuts for these only in the
specific case of there being no window or when a few select dialog boxes
are focused. If they were generally useful to people then surely it
would make sense to add them to the start center menu as well. For
people using non-English language packs the patch from January would
have effectively changed the shortcut keys. If nobody has complained
then it probably means they aren’t used.
Change-Id: I6065c3daa4e288caa98d73a3f286935dc5bc07ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190522
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
(cherry picked from commit 9d2da58ec93db75d2fcfce3dc001d9db0851e3c6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190567
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-03 Noel Grandin <noel.grandin@collabora.co.uk> [641a0e3d9a668f38651831f2a99db02edd50f21e]
tdf#168159 CRASH: deleting columns and undoing
revert
commit 68db5b64b8db405f9e6c0368836a8ee671b46830
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Sat Jun 28 16:13:53 2025 +0200
crashtesting ooo120243-1.ods
and
commit c8742f36fa2bdc9d23042378f5b587ccda8b54dd
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Thu May 22 10:18:48 2025 +0200
tdf#166684 reduce cost of CellAttributeHelper::registerAndCheck
Change-Id: I4d4442c6927121e7f18e3e08eb1736fa94a896bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190521
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190539
2025-09-03 Noel Grandin <noel.grandin@collabora.co.uk> [fe0f5564f4755272a79334418346ecb21282649a]
tdf#168191 Incorrect labels of X-Axis in chart
revert
commit eeb8ca44ac7994c0552749e190a193a44c956769
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Fri Apr 4 10:02:06 2025 +0200
tdf#147874 slow sheet switching with large chart2 (2)
Change-Id: I67dcea417be01982b769dd2bea387b4d29f0e732
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190520
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
(cherry picked from commit 423f95aa13165c2c11c2314d43b8cb1d331b5af0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190537
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-03 Xisco Fauli <xiscofauli@libreoffice.org> [654a6dd03dc687ddca67d09e69b3d47c32e7faeb]
tdf#167753: Revert "slideshow: change transition drawing view to icon view"
This reverts commit e4a1c45a0bad3677d0b131ef9c6ac6e3c4bdb03c.
This patch also reverts a part of
commit 5c4fac1e9f50832852e87452f3152f01b905f9e6
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Wed Oct 16 13:19:05 2024 +0200
loplugin:unusedmethods
since some methods are needed now
Change-Id: If2610349ac1aaecb03d1a2f1b6e3e8005c23eb77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190538
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2025-09-02 Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> [01a4db02715ff12bfed0425784eccfca9ac47d41]
tdf#151710 Don't activate Enclose with characters by default
It is disruptive for non-power users, who then have trouble
finding how to turn it off.
Change-Id: Ib0d849d93794f797aca03d68ead4ef605667aa9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190431
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 0e087513de7158fb3dbc192425782e5654fbc08c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190505
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-02 Justin Luth <jluth@mail.com> [d94e5209fb8b429b1424ac37602538ba2de6ab2a]
tdf#165852 Revert "simplify bookmark name calculation"
This reverts 25.2 commit 0c6599ca14ff4ff63224a7e34e93eb30e1ce2adc,
and commit bcf4b998741da342d8612dfa2ac8b9d5d95269d4.
because rSh.SetCursorInHdFt can move to a different page/footer
and thus rSh.GetVirtPageNum() will change value
on even and odd footers.
Change-Id: I2d29e5c9f7538c47c6e11c8e7432f5f8d880bf72
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190507
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
(cherry picked from commit e16da933cdfe52382274bb9493bcaa12f85d6426)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190508
2025-09-01 Bartosz Kosiorek <gang65@poczta.onet.pl> [afc5873df922a9f72bb615fdeb38de22311b9651]
tdf#103859 EMF Fix size of the corners in ROUNDRECT record
After EMF_ROUNDRECT rendering comparison of Office 365 and
Libreoffice, it appears that radius of corners in LO is twice too large.
EMF_ROUNDRECT implementation has to be aligned and
conversion from ellipse width and height to ellipse vertical
and horizontal radius have been applied (values was divided by 2).
After apply this patch the ROUNDRECT looks identical as in Office.
The issue is also visible in previous version of LO (24.2.7).
Change-Id: I861fcd0e8d8a39d946215cc08ecc95403cd23fad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190391
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Tested-by: Jenkins
(cherry picked from commit cd410d0f384b64cba3d5387943173ae045cae07f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190466
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-01 Justin Luth <jluth@mail.com> [17c702997ece4aeb401c8731e53e5b49acb12862]
tdf#167760 tdf#162326 limit reset para list attrs on style apply
Problem: applying any para style
was removing all numbering or bullets.
This fixes a 25.2 regression from
commit 075560420a7aa238182e2d80dfe1c5fbaad3edbd
tdf#162326 reset paragraph list attributes on style apply
The problem is that bResetListAttrs was already set to true,
but the conditions under which bResetListAttrs applies
were changed by the above commit
so now it affects situations it was never intended to match.
Specifically, this was the condition that changed:
- && pFormat->GetItemState(RES_PARATR_NUMRULE) == SfxItemState::SET
+ && pCNd->GetTextNode()->IsInList()
So two changes need to happen here:
1.) bResetListAttrs needs to only be set
under the existing comment's stated condition (docst.cxx/doc.hxx)
that the para style itself contains a numbering rule.
2.) When the control key is held down,
then bRestListAttrs needs to be set to true
(which is the stated intention of the above commit).
make CppunitTest_sw_uiwriter11 \
CPPUNIT_TEST_NAME=testTdf167760_numberedPara
Change-Id: Iae646124a8a434dd3b49a75caeae4bb360396a49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190309
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190321
2025-09-01 Xisco Fauli <xiscofauli@libreoffice.org> [fbae6c22441a73be63cb95d0a5416e6841f49008]
harfbuzz: upgrade to 11.4.5
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/11.4.5/harfbuzz-11.4.5.tar.xz
Change-Id: Id10f54f98afa9bf416f3214135e817db3f66e318
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190468
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 0a49b03988dc1f3c5a2ea3065666b0f7c751aab4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190474
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-01 Andreas Heinisch <andreas.heinisch@yahoo.de> [8bb3402ec5c352ef6eb4e6424394ff2cda60f595]
tdf#127978, tdf#132421 - Change URL encoding for filename
Change URL encoding for the filename of the import ASCII dialog's title
and of the navigator's tooltip. Otherwise, filenames including a hash
don't display correctly.
Change-Id: Ib2f56e77649184f53dd226f4a77e80d270770135
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190240
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
(cherry picked from commit 930186296cabd00dc0fb1b11dd6bb1b5ef042da0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190269
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-01 Andreas Heinisch <andreas.heinisch@yahoo.de> [16fa8cd1167770f539b112ec2c75caacd1228c47]
tdf#168089 - Don't URL encode filename for the update links confirmation dialog
Change-Id: I9f3b6b7ae342e64c60ee9bf635cd64d7eb32b226
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190132
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
(cherry picked from commit 7039f8acee67cbf20a4ca2b11e8bec5ac8a94414)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190227
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-01 Mike Kaganski <mike.kaganski@collabora.com> [0c1f476a5f87ab97d0f2355680482ffa315159d0]
tdf#168066: implement Format property for Calc's URL field
Inserting the field threw exception from SvxUnoTextBase::insertTextContent,
because SvxFieldData::Create tried to access Format property of the field,
which is documented in css::text::textfield::URL service. It is trivial to
implement it, because the underlying SvxURLField already has it.
Change-Id: I98ddb7ed554b4223922a9da7560a62a0202878b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190080
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 48dae1af66b227e72d58935d5719610c957da30d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190211
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-01 Mike Kaganski <mike.kaganski@collabora.com> [13eee625a31b5aa0c4bd7d52a7df9e897a093ba0]
tdf#168181: process field backslash escaping properly
For some reason, import code for HYPERLINK doesn't use vArguments from
the top of DomainMapper_Impl::CloseFieldCommand, and instead, it calls
pContext->GetCommandParts. But that gives escaped strings that must be
unescaped separately, according to the spec. There was a code handling
specifically file:/// URLs, obviously to address the problem; but the
processing must be universal, both at import and export.
Change-Id: I4d91f1c14dd55077e73dca0141422ba4ebda83d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190388
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 0863f0c4ed983b05c2d86cb42283518e38a77320)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190469
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-09-01 Mike Kaganski <mike.kaganski@collabora.com> [6a9c3def9e89fe400ea43931bff02f0c31491794]
tdf#81003: override GetDate in SbUnoObject to handle oleautomation::Date
Without that, there is no code to deliver that value. The call to
SbxValue::Get will eventually get to the SbUnoObject containing a
css::bridge::oleautomation::Date in struct info; and there it will
find that the object's SbxValue points to itself, at which point,
it will error out from SbxValue::TheRealValue.
Change-Id: Ia08fb2a7b1bcd7292faf5a5719a4fad0054a3f5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190384
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190470
2025-09-01 Miklos Vajna <vmiklos@collabora.com> [24791006efdbcc5ade51a0545f17229606393957]
tdf#167761 sw format redline, char style+direct: add ODT export
The bugdoc contains a format redline that changes the character style
from Strong to Quote and the font size from 24 to 36. Exporting to ODT,
loading the ODT and rejecting the redline, the font size is set to 24,
but the character style is set to default instead of Strong.
What happens is that the item set of the format redline contains the
necessary SvxFontHeightItem, but contains no SwFormatCharFormat. This is
because the ODT export writes no parents for char automatic styles,
because char formatting outside the redline table has 2 pool items for
such char formatting: a dedicated SwFormatCharFormat for the char style
and a separate SwFormatAutoFormat for other char props, so the ODT
export "knows" to ignore the autoformat parent and creates this markup:
<text:span text:style-name="...named style..."><text:span text:style-name="...automatic style...">t</text:span></text:span>
Fix the problem by explicitly exporting the parent style name when we
write an automatic style that is referred from the redline table (and
not from the body text). This is similar to what e.g. "frame" autostyles
already do, which also have parents. The result is this markup:
<style:style style:name="..." style:family="text" style:parent-style-name="Strong_20_Emphasis">
<style:text-properties fo:font-size="24pt"/>
...
<text:format-change loext:style-name="...">
which contains both the named character style name and the automatic
style, describing the direct formatting.
The ODT import side still needs fixing.
Change-Id: I19a67cf5e2c538cfcfa1b13097241954667d2c89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190181
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit c625247680cd5737723154b9a73c45e786611b44)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190215
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-01 Mike Kaganski <mike.kaganski@collabora.com> [d16697fbf6a6653dc631ebd887147afe2bfba37d]
tdf#143182: fix string handling in SbxValue::Format
When a value is convertible to number, check if the format string
is for numbers of text (in SbxValue::Format). If the value is not
convertible to number, handle it according to the format string in
printfmtstr.
Change-Id: I6e11aeffd8dd8581ebc868762944e9d6d9393514
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190348
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit a3597edb52b671e6095f96c8705cd458a50d8799)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190386
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-01 Mike Kaganski <mike.kaganski@collabora.com> [0a5a25ffd4855c418a6c285b1b28b7e5fe504eb2]
Introduce Repeated(U)Char for concatenation of N repeated characters
... and use in sw.
Should replace padToLength, where the number of added characters is
known in advance. Avoids creation of a string buffer for the task.
Change-Id: I90450e37926335d74421c6e38385e4c441e535d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190341
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190392
2025-08-31 Julien Nabet <serval2412@yahoo.fr> [3db9979c937d510d27db2fe7408c8407079d5527]
Fix invalid cast from 'GtkImage' to 'GtkLabel' in appearance.ui
Change-Id: I35ce17d1ab7b4dcd2dcfe4ed1e6f51553f5e9418
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190258
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
(cherry picked from commit f5f228ea9d5abd24e6e6fc332b383894ec6d2d8c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190272
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-08-29 Kurt Nordback <kurt.nordback@collabora.com> [7d02d980fd365aa112354761f2dc81d7bc6a6e83]
tdf#165552 - 'Number of lines' control missing
Fix the chart type dialog and chart sidebar .ui files so that the
'number of lines' entry for columns-and-lines is not overlapping with the
'composite size' entry for of-pie (which doesn't cause a problem with gtk,
but does cause a problem with vcl=gen).
Change-Id: I90db47623b9b5699457e814c914690dc1e7f4bf4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187885
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
(cherry picked from commit 2b4996dc8043dd6b0b2af4e0914caf6c83a2dc87)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190332
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-08-29 Stephan Bergmann <stephan.bergmann@collabora.com> [7a0dca6df4c1222c9a78b16a53cce027e8784b4e]
Adapt flatpak build to upstream changes
<https://github.com/flathub/org.libreoffice.LibreOffice/commit/807aa4d1d34008907e22fb2a0a26eaafbda00f87>
"Allow accessing cups for printing"
Change-Id: I3beef30b44247e2b93ab541bb525c27b5b3ea2d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190198
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 61b48b37361fec72929f6e1a3ae3f670047a5c2f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190204
2025-08-28 Bartosz Kosiorek <gang65@poczta.onet.pl> [a68d8f9df4ed4466ed61ee79ce5c1a2ebe8e6540]
tdf#103859 EMF Improve interpolation of the EMR_ROUNDRECT by Bezier curve
Change-Id: I9d297489415e2b36e9566aa358d5eb9a2e94c398
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190146
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
(cherry picked from commit dea3d83e9a039aaec88f5ecca32066582d1921df)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190336
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-28 Xisco Fauli <xiscofauli@libreoffice.org> [342ed0bef6d5a86a4a2174f7eb320485e37b1e8a]
nss: fix aarch64 build
dbtool.obj : error LNK2048: relocation PAGEOFFSET_12L targeting 'sftkdb_known_attributes_size' (00007F3C) is invalid for the instruction (F9400108 at RVA 000017B8) at section 0xD offset 0x48, due to bad alignment of offset to target (F3C); expected to be 8 bytes aligned
dbtool.obj : error LNK2048: relocation PAGEOFFSET_12L targeting 'sftkdb_known_attributes_size' (00007F3C) is invalid for the instruction (F9400108 at RVA 00001B20) at section 0xD offset 0x3B0, due to bad alignment of offset to target (F3C); expected to be 8 bytes aligned
Change-Id: I7c5331d4976073a7a84575fec5f66db0f12d54cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190219
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 9653afbbe9ed5b124b2fc3186577c3788f664692)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190226
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-08-28 Armin Le Grand (collabora) <Armin.LeGrand@collabora.com> [e4ec4aa609e5a67ec5e3301822d79d90faec30e4]
tdf#168002 CairoSDPR breaks SVG text layout
SubpixelPositioning was until now activated when *any* MapMode was set,
but there is another case this is needed: When a TextSimplePortionPrimitive2D is rendered by a SDPR.
In that case a TextLayouterDevice is used (to isolate all Text-related
stuff that should not be at OutputDevice) combined with a 'empty'
OutDev -> no MapMode.
The DXArray for Primitives (see that TextPrimitive) is defined in the
Unit-Text_Coordinate-System, thus in (0..1) ranges. That allows to
have the DXArray transformation-independent and thus re-usable and
is used since the TextPrimitive was created.
If there is a DXArray missing at the text Primitive (as is the case
with SVG imported ones, but allowed in general) one gets automatically
created during the SalLayout creation for rendering. Unfortunately there
(see GenericSalLayout::LayoutText, usages of GetSubpixelPositioning) the
coordinates get std::round'ed, so all up to that point correctly
calculated metric information in that double-precision dependent coordinate space gets *shredded*.
To avoid that, SubpixelPositioning has to be activated. While this
might be done in the future for all cases (SubpixelPositioning ==
true), for now add this case for all usages of TextLayouterDevice to
not break old stuff.
NOTE: Due to higher precision I had to adapt some values for SVGIO
tests: That is expected since higher precision leads to less-wide
results internally. I checked testdocs that deviations are minimal and
have better quality with SubpixelPositioning then before.
Change-Id: Iab5aa6336cdb18224fd06472bf6badc9eb0fce3a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189993
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
(cherry picked from commit ba462658d955b6d7909f9ffbdfd341f18aff2028)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190236
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-08-28 Xisco Fauli <xiscofauli@libreoffice.org> [28ccc612254cb173d638d918c6550959a9c8c56b]
harfbuzz: upgrade to 11.4.4
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/11.4.4/harfbuzz-11.4.4.tar.xz
Change-Id: If9a22319c9d658b0874dbaf751745bd34cb212a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190210
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-08-28 Xisco Fauli <xiscofauli@libreoffice.org> [91bbfbe4b97c2d4d5663d11722f62b7fb47659f6]
language-subtag-registry: upgrade to 2025-08-25
How the file was created:
mkdir data
cd data
wget
https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
cd ..
tar cvjf language-subtag-registry-2025-08-25.tar.bz2 data/language-subtag-registry
Change-Id: I9449678926ad9bdaa65d0dc1ac1b2af9c0483fcb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190233
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-08-26 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [bc798e31a274a920515a01954f2e09289632659e]
bump product version to 25.8.2.0.0+
Change-Id: Ia03edb8362efb9273bc528601021f6e3e259597f
2025-08-26 László Németh <nemeth@numbertext.org> [8a9aa8096e360856f911ae1011bc42fa70c4b8e4]
tdf#167298 tdf#166113 sw word spacing: add word spacing indicator
tdf#167298: As an advanced feature for typography and related
development – including bug fixing –, add visualization for
justified text lines with too big word spacing.
tdf#166113: fix bInteropSmartJustify by adding bFullJustified
to avoid unnecessary extra calculation for the last paragraph line.
(Regression since commit 529755f0919217a84a12daad0fddfddd1124f0e9
"tdf#166113 sw smart justify: adjust algorithm for interoperability",
detected by the word spacing indicator).
The red word spacing indicator line is positioned before
the justified text line, and its width is the extra space
of a space character over the maximum word spacing.
For example, if the font-defined space width is 3 pt,
the maximum word spacing is 150%, spaces expanded to 6 pt in
the justified line results a 6 pt - 3 pt * 1.5 = 1.5 pt width
word spacing indicator.
To enable the word spacing indicator in a justified text,
1) Open "Tools" -> Options" -> "Advanced" -> "Open Expert Configuration";
2) search for "ShowWordSpacingIndicator";
3) double-click on the config entry (or press Enter) to set it to True;
4) Enable Formatting Marks (Control-F10).
Follow-up to commit 5a48070f5904c51dc9e7bbad4213d802fd4bc89b
"tdf#126154 sw offapi xmloff cui: add min/max word spacing"
and commit 7d6696757dcdfa3cee481ac7795a91b2b47da363
"tdf#159923 sw cui offapi xmloff: add custom word spacing".
Change-Id: I315b5e6b8239f4fdc8e69eb45fc292b8d5891138
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187199
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: Jenkins
(cherry picked from commit c05bc38067b2ab61ae919fb1fef1381343d03844)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187735
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-08-26 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [d2f194f1314488c9f0d7c70bc193c45dfdcb51b2]
update credits
Change-Id: Ice34b576357aca3cdd4c193a80fc112e5dd811a9
(cherry picked from commit b3b650d7f0af39250483e4c70bd382215aad7bc7)
2025-08-25 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [540837ed5eb0544beb43d7a8692b69ecd532eeea]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to 1dc91db5ebadf4c350ac2279d31b9313665bedd9
- update translations for 25.8.1 rc1
and force-fix errors using pocheck
Change-Id: Ic439ea5414d4a61a78000667d677b417ade81d63
2025-08-25 Xisco Fauli <xiscofauli@libreoffice.org> [63d700dbdf8d36789f5ad819a2ba6d2a4570b070]
crashreporting: sc: check GetDBData()
it might return nullptr
Seen in https://crashreport.libreoffice.org/stats/crash_details/9b83d1cc-1964-4e9d-a7b5-2f0ab4702303
Change-Id: Ie4b538697842560f821d78c5fe5e135a517beb82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189586
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-25 Xisco Fauli <xiscofauli@libreoffice.org> [e7644224f9a4ca3b24346c5967d4c82ebbbf814c]
sc: use SAL_RET_MAYBENULL in GetDBData()
Change-Id: Iaccf557056877128b4ba036ff43056816795874d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189587
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 8ffeca7af4302da21d33494342017c3737d540e1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189734
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-08-25 Xisco Fauli <xiscofauli@libreoffice.org> [12f068d1f8740ba67ad4c9f3de85198157214c15]
tdf#167075: init doc shell before pasting as png/bmp (take 2)
Regression after
commit d8ab8992bd35aedfc1d2b0debebab0d623aa8d09
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date: Mon May 26 11:06:06 2025 +0200
ScViewData: pass ScDocShell by ref
and
commit 52e3b2b040ac54c2a5661e3676b135170f028f50
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date: Mon May 26 16:06:12 2025 +0200
ScViewData: simplify constructors
Change-Id: I6a709ab82f51c34a022c43d35b97f661e5c283e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189434
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 671564bce4541244ad3d67b5b98899321176231e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189443
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-08-25 Xisco Fauli <xiscofauli@libreoffice.org> [12d7b6b42e30700c2ae877d62dbf102d3360d977]
nss: upgrade to 3.115.1
Downloaded from https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_115_1_RTM/src/nss-3.115.1-with-nspr-4.37.tar.gz
Change-Id: Ie887520c9177bfca2a7aff78787f14109bb3c4fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190053
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-25 Xisco Fauli <xiscofauli@libreoffice.org> [8c8c339b1e15ee4ad4d9acbbbc4f77a7022ddb3c]
lxml: upgrade to 6.0.1
Downloaded from https://github.com/lxml/lxml/releases/download/lxml-6.0.1/lxml-6.0.1.tar.gz
Change-Id: I3677360e0a14d839aad579d1d81f4152c640a311
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190161
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-08-25 Xisco Fauli <xiscofauli@libreoffice.org> [5d115a20984c128cf5f99c8e06e9f57ff47b205c]
harfbuzz: upgrade to 11.4.3
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/11.4.3/harfbuzz-11.4.3.tar.xz
Change-Id: Ib1d5033eb63c4ec5fba6816e692166b42ea08087
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190157
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190165
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-08-25 Mike Kaganski <mike.kaganski@collabora.com> [d5446d7c6e59defb3c9abcf2a9545d13fdd4c887]
tdf#168070: SwFindDocShell may need an interaction handler
It may attempt to open the passed document, and then it would create
an SfxMedium, that will define how to interact e.g. on errors. When
caller has an interaction handler, it should pass it.
Change-Id: Icd0881ecf31b1e1a4731e1776413c1f62803c256
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190173
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit be6aa7ca0a3d9d444956c0e19a262a2ef91bdd5a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190188
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-25 Miklos Vajna <vmiklos@collabora.com> [df0dd5cf8fa74c07b0ca52673749f2f66208fdb8]
tdf#167761 sw format redline, char style: fix missing encode in ODF filter
Open the input DOCX, save to ODT, the named char style of the format
redline is:
<text:format-change loext:style-name="Strong Emphasis">
while it should be:
<text:format-change loext:style-name="Strong_20_Emphasis">
This was not obviously a problem before, because both the import and the
export failed to encode/decode, but it'll be a more noticable problem
once we try to handle both direct format + char style, where autostyle
parent names are encoded and this was not, leading to inconistency.
Fix the problem similar to how it's handled for <text:span> elements for
export in XMLTextParagraphExport::exportTextRangeSpan() and for import
in XMLTextImportHelper::SetStyleAndAttrs(), by encoding/decoding on
export/import.
Also update sw/qa/filter/xml/data/format-char-style-change.odt, which
had a bad style name, missing an encode before export.
Change-Id: I2a9fae2c99c286d8c1c3a5e6af18f6f501e18089
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190151
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 43104ad996bc9b292b66d9e605632407cb59c4c6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190175
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-25 Patrick Luby <guibmacdev@gmail.com> [128e2c009e4c13821bbe371e949eaf8a979bc2bb]
tdf#111634 Eliminate some macOS Address Book driver memory leaks
The memory leaks that have been eliminated were found using the
steps in the following post:
https://bugs.documentfoundation.org/show_bug.cgi?id=111634#c0
Change-Id: Ifb4ec1837737fe5430ade571e1a45e0aa76078ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190100
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
(cherry picked from commit 67e05014a293eece25d781ace0af875b81dea2ad)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190103
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-08-25 Justin Luth <jluth@mail.com> [999a132e30ca427ab67bbe6c647c5c2724639548]
tdf#164500 writerfilter: make extra framePr anchor para tiny
This reduces the layout impact of
25.8 commit 575094675e7f6fb643e8cac61f06c14d2f79bcd5
I initially just tried to make the paragraph simple (default),
but that could still end up being overly large,
so force a small size/margins/lineSpacing as well
to make this added paragraph as inconspicuous as possible.
make CppunitTest_sw_ooxmlexport18 \
CPPUNIT_TEST_NAME=testTdf164500_framePrBeforeTable2
Change-Id: I0c91048d206037b3427c6aa4704d65bb9f677435
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189702
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
(cherry picked from commit 041829c76877599ebf94c9b5bdfa94ec08132d9f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189727
2025-08-25 Justin Luth <jluth@mail.com> [5dde4060cc7ee51481106fbf4567e59353182e79]
related tdf#167721 cui: allow negative values for firstLine
When lcl_SetFontRelativeValue was calling
rField.SetFontRelative(FieldUnit::FONT_CJK_ADVANCE),
then SvxRelativeField::SetFontRelative would
m_xSpinButton->set_range(bNegativeEnabled ? -9999 : 0, 9999)
and bNegativeEnabled was false.
Change-Id: I3068705c15c11a066301b1105f3959c982f5f824
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189389
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
(cherry picked from commit 6c1b8cf820b41f7a579d5d9e7036a14d22567782)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189421
2025-08-25 Stephan Bergmann <stephan.bergmann@collabora.com> [ee515989c3ca1ee7c06fee2585a5a285f729b6d5]
Update the reference rdbs to libreoffice-25.8.0.4
.../master/instdir/sdk/bin/unoidl-read --published \
.../libreoffice-25.8.0.4/instdir/program/types.rdb \
>.../master/udkapi/type_reference/udkapi.idl
* css.lang.XSingleServiceFactory has been un-deprecated with
4f03d1c23840b49d9af5080eaf9f59688685664f "css.lang.XSingleServiceFactory must
not be @deprecated"
.../master/instdir/sdk/bin/unoidl-read --published \
.../libreoffice-25.8.0.4/instdir/program/types.rdb \
.../libreoffice-25.8.0.4/instdir/program/types/offapi.rdb \
>.../master/offapi/type_reference/offapi.idl
* css.i18n.GROUP_SEPARATOR_IN_NUMBER_3 is marked as "@since LibreOffice 25.2"
but was only brought into libreoffice-25-2 with
055b637ed9bdd02cd857664813a66afde51dfd0a "tdf#158867 offapi,i18npool,starmath:
fix ',' in Math again" after libreoffice-25.2.0.3, for which point the
previous type reference had been generated with
aabf7c44ecdf7162eaa8ceead5fb7147218e6ffc "Update the reference rdbs to
libreoffice-25.2.0.3"
Change-Id: I387e20b3bc5955b60b8365f6a64604481f2e0de2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190155
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
(cherry picked from commit 50e82794f1a39c326bf807623241aff81b54cd59)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190167
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-25 Mike Kaganski <mike.kaganski@collabora.com> [cd8f79fc01173ce66e84bef7be6bc04912e59fb0]
tdf#168096: reset selection each time GetUnoText is called
ScCellObj represents the whole content of the cell; and its XText
must always cover it all. However, implementation (ScCellTextObj)
may get its "selection" (defining the actual range) out of sync,
after created initially, if content is changed using other objects.
It is a modification listener; but that doesn't help, because some
methods may manually re-assign selection after the actual content
change: see e.g. SvxUnoTextBase::insertString.
This change resets the selection of the cell object each time its
GetUnoText method is called. The EE_PARA_MAX value assigned to
start.nPara causes the needed processing in CheckSelection.
Change-Id: I94bc55ee3df7976dcaeaa9c4878059995e885e8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190142
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190164
2025-08-25 Mike Kaganski <mike.kaganski@collabora.com> [d4fb438cf3f3375ff72209b994f040a92b5c68db]
tdf#168073: generalize the fix to other XText methods
... that take XTextRange, and that should accept the cell itself
Change-Id: Id9157b53521e22059825a6d86c814f334682a3c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190109
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190163
2025-08-25 Mike Kaganski <mike.kaganski@collabora.com> [2bdf8d96a1356fc74ec271cdbb88954ae0d84240]
This code is dead
If getFromUnoTunnel<SvxUnoTextRangeBase> failed, there's no
need to test getFromUnoTunnel<ScCellTextCursor>: it is derived
from SvxUnoTextRangeBase, and will always fail.
Change-Id: I9faac80c6d58ff8d5b84cdb6ab5682ffc06f6b3a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190093
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190162
2025-08-25 Caolán McNamara <caolan.mcnamara@collabora.com> [001977eac8a1a27892eb447d02271086845210a4]
cid#1660010 Overflowed constant
Change-Id: Ie8d50e3178713029197a1df3a80ce3319c0f77ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190107
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 1cecf9f2a44ca597a69ec12732f9b86bb1fc1aba)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190144
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-08-24 Noel Grandin <noelgrandin@gmail.com> [87adf182c7d66d9c18ca3d6e94f4c8592ad77301]
tdf#168068 Bold/italic not functioning (2)
regression from
commit 6e16e1812292236ed61b637371f70459cf993b7f
Author: Noel Grandin <noelgrandin@gmail.com>
Date: Mon Apr 7 20:14:46 2025 +0200
tdf#64991 exit some loops early
Change-Id: Iae46edcd39c042a7e78f1d7c46e71c6258af7934
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190108
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit cc09d5db6ed126037bfb476d24d2866c308c62d9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190140
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-24 Noel Grandin <noelgrandin@gmail.com> [f72b23deb73542c60984e8cc6390c62b8b9370c7]
tdf#168008 XTextRangeCompare doesn't throw when ranges are in different texts
regression from
commit 27e9fd67260b8ad321cf0f8722e2db8a08473927
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Thu Jun 13 09:01:50 2024 +0200
tdf#144208 speedup doc with lots of redline (7)
Change-Id: I2df6a7c345735be84b459bab0bbfd874c991f6f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190092
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
(cherry picked from commit 14e542d58778963df461965f129286fc75459d3b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190096
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-24 Mike Kaganski <mike.kaganski@collabora.com> [8013104ecc2e1a297cb238024c9a6100b07ff84d]
tdf#150229: increase maximum size of URLs for Excel file formats export
The values (8192 characters for XLSX, 2083 characters for XLS) are from
experiments. While 8192 looks legit, 2083 seems odd - but when I export
an XLSX with 2084-character hyperlink to XLS, the end result misses the
hyperlink completely.
Change-Id: Iaf607063b624af93393609eb42feba62910d5254
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190078
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit f41c58ad4172729a2be261f0ccea01d741d61a2d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190098
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-24 Noel Grandin <noelgrandin@gmail.com> [b7d54ddc548f9df7058c8a1dc4df00691b74c35d]
tdf#167812 font dropdown broken (2)
Fix this some more.
Using transparency, as in my first commit for this issue,
means that we have to fill in the background for the list box
entry before drawing the entry.
Change-Id: Iee018473524eaa58bc3584fac3c136bfe01408d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190057
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 4bdcccaedb5f1be85784dffd70fc017d1ed2fc5b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190095
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-24 Noel Grandin <noelgrandin@gmail.com> [e154f90438506a6f7e4da3c1e53c0d28289463de]
Revert "remove mpThreadGraphics from GDI backend"
This reverts commit b5510122fd68e3d16117684f51062dfb03961b85.
I was wrong, we need this for when out of process extensions
call into vcl, which they will do not-the-main-thread.
Unfortunately, the only unit test we have that exercises
this is JunitTest_sfx2_complex and that test is not run
on the Windows Jenkins boxes.
Change-Id: I55582418c229a7064e27ebf408a9e719ef6dd8a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187795
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit fa5b29052dc5768048d7098a4829aa2a14ec35c7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190138
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-24 Noel Grandin <noelgrandin@gmail.com> [b38c44ee5a08bd4d3ea2e69a3a01fca63880e221]
tdf#168068 Bold/italic not functioning
regression from
commit 6e16e1812292236ed61b637371f70459cf993b7f
Author: Noel Grandin <noelgrandin@gmail.com>
Date: Mon Apr 7 20:14:46 2025 +0200
tdf#64991 exit some loops early
Change-Id: I9167708bb8e6d3477b711f0ce773b0f9594e91c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190102
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 864bd25ae13c07037a818f51889cd7c578af850f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190139
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-23 Mike Kaganski <mike.kaganski@collabora.com> [1e040b72222012f9a5f1e47d19aaf0c0369e08ad]
tdf#168073: check if xRange is this
And use its own XText implementation object as the range. Also relax
the call to getFromUnoTunnel, to request SvxUnoTextRangeBase that is
actually wanted, not arbitrarily chosen ScCellTextCursor. This makes
this optimized code to also handle ranges returned from ScCellObj's
own getStart() / getEnd().
Change-Id: I4f500b32790f2844fdd7f54818b79b8a29525475
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190085
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit a8ce5af575ea5e05eb7c349d50b4eb08cab983ff)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190097
2025-08-22 Mike Kaganski <mike.kaganski@collabora.com> [3c8a54698ef7ea11d17f564d273464640c5b02b9]
Simplify sd::View::InsertData
Let it return immediately where the job is done. To do that, move the
cleanup actions to a ScopeGuard. That avoids overlooks where an early
return skipped these actions by mistake.
Change-Id: I8330afed43c70e8f4a3b15ac7ced44f61cc51e9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186522
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit e933a61be0e796de415e53645a44dbcc1e8200fe)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190076
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-22 Caolán McNamara <caolan.mcnamara@collabora.com> [3fa6bed062d7fd840eb75c18390e0384695af827]
Resolves: tdf#156297 restore copy area optimization
This reverts commit 344d90b20bdf95e9888f916672bbe51a5d700d02.
"tdf#152094 don't attempt scroll paint optimization for devices with a mapmode"
It slows calc scroll down too much, and things have moved on with text
placement otherwise, so this hack is possibly redundant anyway.
Change-Id: Ic4337e71ddd38250a1e5e305acb97b3f1a93f20c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190054
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit a6dc33e5b4af22ef150ca328ad67132e85ec3dbe)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190061
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-21 Xisco Fauli <xiscofauli@libreoffice.org> [98bb4a9de003948e08339167f5d9e13d3351d571]
tdf#167774: sw_odfimport: Add test
Change-Id: I781bd1bbae10f2ccc0660b39e976d99c72c4fee0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190021
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 3d411a417db35c40e990c2cab09f65198ec0371b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190030
2025-08-21 Noel Grandin <noel.grandin@collabora.co.uk> [68ea22378d5db5d2c51193a7d9771d4569d4e5aa]
tdf#167812 Calc in Dark mode: font dropdown shows white rectangles (GTK3)
regression from
commit e0d4d178caff1414a9a21fa57f06bc8d4d2c389a
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Mon Jan 13 15:03:05 2025 +0200
Change alpha behavour of OutputDevice::SetFillColor
Change-Id: Ifa34c795d2f69b6ef258757073c89f73ca64041a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190004
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 3275aca2e8eb44d7c167541e86455f50dae204b3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190022
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-21 Miklos Vajna <vmiklos@collabora.com> [5d30325108f80fbb6ac913b42e74a64a7e13bd72]
tdf#167761 sw format redline, char style: implement ODF import
Load the bugdoc, the format redline at the doc end has the Quote char
style, reverting the redline should result in the Strong char style, but
results in no character style.
What happens is that XMLChangedRegionImportContext::SetChangeInfo()
assumed that the style name of the format redline is always an automatic
style, while it may be a named character style, too.
Fix the problem by splitting the style name into two parts in
XMLChangedRegionImportContext::SetChangeInfo() (named style, automatic
style) and then work with that pair in
XMLRedlineImportHelper::InsertIntoDocument(), similar to how
XMLTextImportHelper::SetStyleAndAttrs() works for <text:span>'s style
name.
The ODF export worked already.
Change-Id: I2fa1479a0d2463556e84be566967325584bc14f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189984
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 0ba6dd9eb3f342345663b12527a29425675d2078)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189995
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-21 Noel Grandin <noel.grandin@collabora.co.uk> [f4fd88e4e04ecdb8266ba6112dffc988a8157775]
tdf#167774 Writer shows font of defined style with 10,8 pt instead of 9 pt
regression from
commit ca65ed8a37847b334868b8cbf05f1ba77665d5aa
Author: Noel Grandin <noelgrandin@gmail.com>
Date: Tue Dec 24 12:28:29 2024 +0200
move RES_FMT_CHG to SfxHint
The important fix is in SwModify::SwClientNotify.
The other changes are small things I picked up when going over the original patch, which
likely don't make much different, but better safe than sorry.
Change-Id: I65c79b60740dc7f1b711522db8d8682c69d632e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189998
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190020
2025-08-21 Caolán McNamara <caolan.mcnamara@collabora.com> [fb32b7f21092b083abd8e6f4994159a5d1666b10]
Resolves: tdf#150743 disable keep ratio is any value is zero
can't divide by zero
Change-Id: Ia6f60e1614a621cee7eaa6029cf0eefda32210bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189997
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 7d2b92d0e78751ac00d25dd312f7bc77abe96b4e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190001
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-21 افشین <afshin@libreoffice.org> [423d7edf0d74735e221e4755c19223486ad878cb]
tdf#164996 Optimize Persian (Farsi) AutoCorrect list
In this patch, I have added some new incorrect Persian (Farsi) words
and removed ~400 words that were not incorrect.
The removed words were spelling variants and can not be considered
incorrect.
Change-Id: I06903519e72fcdee33574d80c71f6f301a30e05b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189495
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
(cherry picked from commit 270e3677e026d7da7474e1a28dea98dd62c105f1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189986
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-21 Miklos Vajna <vmiklos@collabora.com> [3baa9e363bee40c8cdcda4f3e2a4026929a23fd7]
tdf#167761 sw format redline, char style: implement DOCX import
Open the bugdoc, there should be a format redline that tracks the change
of the char style from Strong to QuoteChar, but the doc model contains
no redlines.
What happens is that we try to handle character style as a character
property, but SwUnoCursorHelper::makeRedline() uses
SfxItemPropertySet::setPropertyValue() for CharStyleName, which calls
into SwFormatCharFormat::PutValue(), which fails, so the redline is not
created.
Fix the problem by reusing lcl_setCharStyle(), that knows how to set the
character style on an item set.
The DOCX export worked already.
Change-Id: I9479cadfdf6cb598cd4b11d49d851236c8ec09e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189918
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit a6d8608595fd1ecfdff35c2003a28589ea1214ad)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189978
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-21 Balazs Varga <balazs.varga@collabora.com> [d7282fff1cac8057ca9ec86f45bd8114bcbbaf3e]
tdf#168023 sc view: fix empty cell be not rotated with Text Orientation
We should only do text rotation if we have text content in the cell.
To test just open bugdoc in check if F1 cell borders are rotated or not.
TODO: unit test
Change-Id: Ie7a5dda8b81e3793300e6bc358540fa363568b91
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189963
Reviewed-by: Balazs Varga <balazs.varga@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 9e3cebf6c017b01ec917c818988db45aa9ac0b1d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189987
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-21 Noel Grandin <noel.grandin@collabora.co.uk> [b81b31964a0d8e8a7f8765d696931db3bd2d32fb]
fix cairo null pointer deref
when running with internal cairo and the gen backend
Change-Id: Iec847b5f9fe97faefc1304e0e153ed81f8e1c9b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189983
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
(cherry picked from commit 1f9fa0dd5b7fdf7aa5599bec6bcfa304e8654300)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189996
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-21 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [a600022e08e0e51388116a079602362020307ad0]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to 60cfb2fd043c291510527d4517adafcb65973f0a
- update translations for 25.8.1 rc1
and force-fix errors using pocheck
Change-Id: I5fcce84921449ce710bc87289cb5f6f4c146ab8a
2025-08-21 Caolán McNamara <caolan.mcnamara@collabora.com> [59a848d274538980cf73ff3ee3f8acf417330288]
Resolves: tdf#167419 Changing the borders of a table doesn't refresh bottom
The bottom border can remain un-refreshed. That border is outside the
FrameArea of the table when the default CollapsingBorders is enabled.
Add it in here for the last row when determining the area to repaint.
Change-Id: I45cecd11e7d0d53905b3d6d6b3de83e1a28a468d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188480
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit e9abbdd178d6a01f6ecd8642920c52902312e470)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189494
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-08-21 Miklos Vajna <vmiklos@collabora.com> [3b504086e2446d566749638882b4f73c7eeb1e3f]
tdf#167761 sw format redline, char props: implement ODF import
Load the bugdoc, save as ODF, open the ODF, revert the format redline,
the font size should go from 36pt (new direct format) to 24pt (old
direct format), but it goes to 12pt (doc default).
What happens is that the format redline specifies the old direct format
via <text:format-change loext:style-name="..."> (referring to an
automatic character style), but this was not handled on import.
Fix the problem by:
1) Handling the new attribute in
XMLChangedRegionImportContext::createFastChildContext()
2) Looking up the already imported autostyle for the style name in
XMLChangedRegionImportContext::SetChangeInfo()
3) Creating a matching SwRedlineExtraData_FormatColl in
XMLRedlineImportHelper::InsertIntoDocument() when the format redline
is created in sw/ core.
Note that this means we have two autostyle names at play, the first is
T<number> and the second is effectively a pointer address as a string,
like 3cb7b270; FindAutoCharStyle() mapping from the first to the second.
Unfortunately both are just string references to the already imported
autostyle.
Change-Id: Ib0f18bad223f4320afe5aaa11ea713e610f6c029
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189845
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189909
2025-08-21 Miklos Vajna <vmiklos@collabora.com> [a9a945547b26376b15d8dd3865d2dd54e576608a]
tdf#167761 sw format redline: implement ODF export
Load the bugdoc, revert the format redline, the font size should go from
36pt (new direct format) to 24pt (old direct format), but it goes to
12pt (doc default).
What happens is that we have working DOCX import to store this in
SwRedlineExtraData_FormatColl's item set, but the ODF import/export is
missing.
Add the ODT export by:
1) Adding a new SwXRedlineAutoStyle that exposes the item set, assuming
it contains character properties, and create this in
SwXRedlinePortion::GetPropertyValue() if the RedlineAutoFormat property
is requested.
2) In XMLRedlineExport::ExportChangeAutoStyle(), write this item set as
an autostyle.
3) In XMLRedlineExport::ExportChangedRegion(), refer to this autostyle.
Note that similar to delete redlines, the format redline contains the
old formatting, the new formatting is directly in the document.
Change-Id: Iedd7416e5eefc4814199d60c4a6b68dbb76136e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189672
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189908
2025-08-21 Mike Kaganski <mike.kaganski@collabora.com> [40f13a8fc7676f7ed0741b3b4c46d0c06637ce53]
tdf#168010: introduce UseTrailingEmptyLinesInLayout compat option
In PowerPoint, autoshrink text size is calculated the same way as in
Impress, ignoring the empty lines block in the end. But when the text
is positioned, these lines are taken into account, which may change
position of texts aligned to bottom.
Since this method of positioning text may change text placement very
seriously, it can't be used unconditionally, and requires a compat
flag, which is introduced here, only enabled for PPTX import, and in
ODP documents having the option explicitly set.
It is not used for other MS Office document types. I saw that Excel
behaves similarly to PowerPoint, so maybe it makes sense to enable
it for XLSX, too; on the other hand, MS Word works differently. Also
I couldn't prepare a test document in binary PPT to test hehavior.
The decisions about these file types should go in separate changes.
Change-Id: Ie37f1d2b3393f9c52be89586c73df70b108190a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189935
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 425b55efaf1f04e8f91cb049a5820fcf61e678dd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189942
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-21 Mike Kaganski <mike.kaganski@collabora.com> [ab3d6fc0df510bee87e288b7b0c051173675048c]
Use enumarray for SdrModel's compat flags
Simplifies adding new flags
Change-Id: I9db6fab29676f620107d3364d7318790e4512e1d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189910
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit b2d3a4dd250ad6156f904d6b755a6faa4bfadd60)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189941
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-20 Olivier Hallot <olivier.hallot@libreoffice.org> [6d21736aa3abaf6a44855d6839f05dace62eb7dd]
Update git submodules
* Update helpcontent2 from branch 'libreoffice-25-8'
to 5a7f97909944f209124f647ec539b5e9865d7465
- Add LO25.8 video teaser
Change-Id: I18b40bcb70c6a70fe9085951beabb16d7ab798be
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/189938
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 635c0a59db2fd0efd7cc9010a5cc2e8feafd5619)
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/189939
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-08-20 Caolán McNamara <caolan.mcnamara@collabora.com> [3998282717db05cb7c37f8b19d2bf6d69e2e907f]
Revert "cid#1660822 Different smart pointers managing same raw pointer"
This reverts commit fae1a210dcc817862045e7db6edf9eabe60d7557 in
the stable branch.
Change-Id: Ic222d24a03a289a83cddbeb0008dcc321b9de33e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189954
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-20 Heiko Tietze <tietze.heiko@gmail.com> [6fb8f20900139856cbe06aeaa8985efb761aeb40]
Resolves tdf#167952 - Null-pointer-use in Welcome dialog
Change-Id: Ibc33b0e8cb93888a373ee0f27735ba276ee27960
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189668
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
(cherry picked from commit 144e72591a61127a6d1e0f1a6bc9867a61e9b135)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189952
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-20 Mike Kaganski <mike.kaganski@collabora.com> [7450e3db03d7c09acf80124b460b6b9cef3d9b64]
SwXRedline::getPropertyValue must throw on unknown property
SwXRedlinePortion::GetPropertyValue didn't throw, so any name
could be passed to the objects accessed by XRedlinesSupplier.
Change-Id: I9fc93c065e887a0c3062ee54d6714aaf39a45126
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186418
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189924
2025-08-20 Mike Kaganski <mike.kaganski@collabora.com> [fbf69202c071acf317bc6a9d549d35defb2c2df2]
SwRangeRedline::GetDescr can be const
Avoids some const_casts.
And moving some code working with PaM to a separate function allowed
to restructure it, and avoid initializing the description variable
with non-trivial DenoteSpecialCharacters(rPaM.GetText().replace(...)),
in cases when it had to be immediately replaced with something else.
Change-Id: I3b213ca3daa31ae491f067a823443c70f6b1d22c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186415
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189925
2025-08-20 Miklos Vajna <vmiklos@collabora.com> [0c0d1ecd47237a80971e30cc315f41ddd1c8b621]
tdf#167761 sw format redline: register the item set in the autostyle pool
Load the DOCX bugdoc, save to ODT, open it, go to the 36pt font size
format redline, click reject, should be 24th, but it's now 12pt instead.
What happens is that SwRedlineExtraData_FormatColl SfxItemSet is not
part of the autoformat mechanism, so the ODF markup can't even refer to
it. So reject works correctly after DOCX open, but not after ODF
roundtrip.
The first step here is to replace the std::unique_ptr<SfxItemSet> with a
shared pointer, similar to what SwFormatAutoFormat does for normal
character direct formatting (the redline just stores the old direct
formatting).
This allows producing the std::shared_ptr<SfxItemSet> in the autostyle
pool, so the ODF export will be able to export the old direct formatting
as a next step (not yet done here.)
Change-Id: I1f7a8083ce766bd2ec06bb8e19bfce0eaebfe405
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189509
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189524
2025-08-19 Caolán McNamara <caolan.mcnamara@collabora.com> [48b2cf6caffc0e0c11dc7cc112d9f3e8c2de4488]
cid#1660532 Overflowed constant
Change-Id: Id0e494aa0465e6c04c7a8210597be891b734c461
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189821
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit b60a410a90bbe5fce235b38a5a92022b5a9bcdee)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189844
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-19 Justin Luth <jluth@mail.com> [104a7e6b50329450cf7757fbede0c8acc734fb1f]
tdf#167721 docx export: don't spam *Chars=0
I don't think we ever import this situation in DOCX
(and no existing unit tests were found),
but if a margin is stored in LO as FONT_CJK_ADVANCE 0.0
then it is already written out as disabled,
so a style that inherits that disabled item
doesn't need to re-disable it.
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf167721_zeroCh
Change-Id: Id6c90ca3e4704f2baf3619cce6470b517ea1772f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189637
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189652
2025-08-19 Justin Luth <jluth@mail.com> [3abee091cd10f634b00e3bca733f3deff1dafd86]
tdf#167721 writerfilter: adjust disabled leftChars by hangingChars
Sixth Problem - in a very inconsistent move, with hangingChars
MS Word ignores the fact that w:leftChars=0 has been disabled,
(or even never defined)
and simply treats it as a zero margin,
even if a w:left margin has been defined.
I imagine this is actually a bug in MS Word.
That bug is seen in MS Word 2003 / 2010
and still exists in MS Word 2024.
There are even weirder things happening with styles,
but when I actually apply a style to a paragraph,
then that paragraph gets different margin properties
than what is shown for the style,
so probably best not to attempt any changes to styles at all.
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf167721_chUnits
Change-Id: I689853f631aa1cb5e144e43e75672b177fd81537
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189437
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189554
2025-08-19 Justin Luth <jluth@mail.com> [8a11beb71eff1b4c7fa2a4b61394cec825e7a804]
tdf#167721 writerfilter styles: adjust leftChars by hangingChars
Fifth Problem - styles import needs to adjust the left margin
just like the paragraph import does.
The way MS implements "hanging"
is that w:hanging defines where the first line starts
and w:left defines how much further the remaining lines start.
This is opposed to "firstLine"
where w:firstLine defines the additional indent for the first line
and w:left defines where the entire paragraph's indent.
LO's implementation is much nicer, where the left margin
always defines the entire paragraph's indent.
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf167721_chUnits
Change-Id: I6ac4b49350d33d31d0948530910b4d4712bdc403
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189269
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189553
2025-08-19 Justin Luth <jluth@mail.com> [8b097a952b556c3ba28e32658de702ae8c183c96]
tdf#167721 docx export: add w:left=0 when w:leftChars=0
Setting w:leftChars to zero means that it is disabled.
It will use w:left instead.
Since w:left could otherwise be inherited from the paragraph style,
make sure that it is specified as zero.
Change-Id: I9b14d96aae4b5128e3dc490a57022832eee9b2f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189268
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189552
2025-08-19 Justin Luth <jluth@mail.com> [5ff90b9dc4574e3c9de24801db9cfd66c1e24db9]
tdf#167721 docx export: disable inherited leftChars when writing w:left
There are two w:ind items that can affect the left margin,
and leftChars has the priority.
So if the parent style's left margin was written as a leftChars,
then a non-leftChars w:left needs to also disable w:leftChars.
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf167721_chUnits3
Change-Id: Ie0126ea5e5409907d4edc999ec13ac5f667aa682
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189267
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189551
2025-08-19 Justin Luth <jluth@mail.com> [571b555a6fd8e1dfc12cf7f76d168bfb5dcbe044]
tdf#167721 writerfilter styles: use provided w:left when leftChars=0
Fourth Problem - styles need to apply either the value of w:leftChars
or the value of w:left, but not both.
If w:leftChars=0, then the style gets the value of w:left
(either an implied 0, or else specified, but NOT inherited!)
Otherwise, leftChars (which might be inherited) takes priority.
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf167721_chUnits2
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf167721_chUnits3
Change-Id: Ia19e48f57c6a716e3275df6261e7fb257f0cd788
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188930
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189550
2025-08-19 Justin Luth <jluth@mail.com> [403c426c4bb602088ae4d8251ea7897a91dd8afe]
tdf#167721 writerfilter: ensure w:left applied if w:leftChars=0
Third problem - if leftChars is disabled,
then w:left needs to be applied to the paragraph.
If BOTH were defined as direct properties
<ind w:left="1234" w:leftChars="100"/>
then xTextAppend->finishParagraph has applied both
of these properties to the paragraph,
and it is somewhat ambiguous which one exists.
(In my testing, PROP_PARA_LEFT_MARGIN_UNIT wins).
So in this section of code, we are reviewing the situation
and re-applying the appropriate property.
In the special case when the disabled-leftChars property
was written to the actual paragraph,
the direct-or-inherited w:left needs to be
rewritten onto the paragraph.
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf167721_chUnits
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf167721_chUnits2
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf167721_chUnits3
Change-Id: Ic36db6d4934876d800770fe8f3303c7eca06d532
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189234
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189549
2025-08-19 Justin Luth <jluth@mail.com> [44ab5932c6d1a959f6120c807485a1184ccd0847]
tdf#167721 writerfilter: don't adjust leftChars=0 by hangingChars
Second problem - a zero value is a special case
which "turns off" a previously defined w:leftChars
and uses the w:left value instead (usually).
Since it doesn't make sense to add a variable-length ic unit
to a static-lengh unit (like cm), just ignore that situation.
[NOTE: sometimes they do seem to need to be added together,
the likely formula is 1 Ch * 100 == TWIP value.]
Thought experiment: what if the hangingChars adjusts a leftChars
so that the leftChars BECOMES a zero?
It doesn't matter - we are only changing LO internals now.
This patch prevents hangingChars
from adjusting the left margin from the special zero-case.
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf167721_chUnits
Change-Id: I3f2a379c6145c10eccbce1ce59969c4a59acc330
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189233
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189548
2025-08-19 Justin Luth <jluth@mail.com> [9ffea9800ab1fca4229b308aacc4ee2f49fddb0d]
tdf#167721 writerfilter: ic needs to inherit from parent para-style
First problem - all 3 settings were set to 0 if no direct property,
so there was no inheritance from parent styles.
Note that it is important to record the zero case,
otherwise you can't "stop" inheritance.
(My first instinct was to not write any property when !nIntValue.)
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf167721_chUnits
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf167721_chUnits2
Change-Id: I5f3dec002271f3401a126b1e55b78191dd622453
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189232
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189547
2025-08-19 Justin Luth <justin.luth@collabora.com> [6b62fbaef464ebdceb2d03784f5726e81673abb7]
tdf#164748 doc/x export: fix missing right/left only page break
This patch improves on tdf#99120's round-tripping patch.
LO 25.8's import patch for tdf#164748
exposed this wrong export for even/odd section breaks.
Previously it was masked because it was not
IsPlausableSingleWordSection in MSWordExportBase::SectionProperties.
make CppunitTest_sw_ooxmlexport5 \
CPPUNIT_TEST_NAME=testHyperlinkContainingPlaceholderField
Change-Id: I08be55c6581062eb0fa7f87c787923ca0a2e5f88
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189887
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
(cherry picked from commit 7605edd81c32b55dd75fe5f718497678d0e10af5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189912
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-19 Caolán McNamara <caolan.mcnamara@collabora.com> [4536c3d4230c0c52a0d05fb2e184b38b892bb385]
Resolves: tdf#141033 make combobox max width the same as editboxes
i.e. 30 chars wide, otherwise a long table name will stretch the
page too wide to be useful
Change-Id: I65151e864f178de0236cb35d133830c8bca95b9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189808
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 9fc99321c11202aa92fe6b932c5afd38ffe81e31)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189843
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-19 Michael Weghorn <m.weghorn@posteo.de> [76db1af13b394c944876adddd8ddd6bc61a7557f]
tdf#167930 gtk3 a11y: Keep caret pos when removing selection
Don't always use an index of 0 for the start and end index
of the new empty selection, but use the current caret position
instead.
This prevents the cursor from jumping to the beginning of
a paragraph when removing a selection via the AT-SPI Text
interface as decribed in tdf#167930:
Example using Accerciser's IPython console with a sample
Writer paragraph with text "abcdefghijk", with "efgh"
initially selected.
Previously (unexpected line marked with arrow):
In [64]: text = acc.queryText()
In [65]: text.caretOffset
Out[65]: 8
In [66]: text.getNSelections()
Out[66]: 1
In [67]: selection = text.getSelection(0)
In [68]: selection[0]
Out[68]: 4
In [69]: selection[1]
Out[69]: 8
In [70]: text.removeSelection(0)
Out[70]: True
In [71]: text.caretOffset
-> Out[71]: 0
In [72]: text.getNSelections()
Out[72]: 0
With this commit in place, the caret offset remains
unchanged:
In [74]: text = acc.queryText()
In [75]: text.caretOffset
Out[75]: 8
In [76]: text.getNSelections()
Out[76]: 1
In [77]: selection = text.getSelection(0)
In [78]: selection[0]
Out[78]: 4
In [79]: selection[1]
Out[79]: 8
In [80]: text.removeSelection(0)
Out[80]: True
In [81]: text.caretOffset
-> Out[81]: 8
In [82]: text.getNSelections()
Out[82]: 0
There is also an XAccessibleTextSelection UNO interface
that SwAccessibleParagraph implements that looks like
it should be useful to implement the methods to
add/remove/count selections, but it didn't work as
expected in a quick test, so the implementation inside
Writer would likely need to be fixed first if going
that route.
Change-Id: Ieca9dff66eef366bf2a3845e5fdb53b3bfa70df9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189579
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit 315c94c91adc6a9e79a78b304e8d2b95e2f45b80)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189609
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-19 Noel Grandin <noel.grandin@collabora.co.uk> [11c6d25f6729028a0ea4ab106ec0f76ddf220846]
tdf#166842 do not use FillColor==COL_TRANSPARENT...
.. on OutputDevice if that OutputDevice does not support alpha
Change-Id: Ic6e5e2637a30d4588866a10b1519a5ffec3ae21d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187180
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
(cherry picked from commit 850a98962c0bbf6e11eb1a571a6160d896127167)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189896
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-19 Miklos Vajna <vmiklos@collabora.com> [1f86c64fbfd85471ade3cf9b69aa0f8dc4848775]
CppunitTest_editeng_editeng: avoid gb_CppunitTest_use_library_objects
It leads to ODR violation since 006c8f2d7517965657a9caca1fa7afd757f2f4c5
(tdf#166882 - sd odf clipboard: fix missing copy/pasted graphic bullets,
2025-07-30), see
<https://gerrit.libreoffice.org/c/core/+/188532/7#message-87c0be80800615710c3411e7adf686c6ac1eb36f>.
Change-Id: Ia9ef2fb970d05873d7d40f460c8ed09fb709e4c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188655
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189573
2025-08-19 Balazs Varga <balazs.varga@collabora.com> [c807f6f6ea5a6c8b36eb72c5f856dfdd046a9980]
tdf#166882 - sd odf clipboard: fix missing copy/pasted graphic bullets
Export/import to/from odf clipboard the bitmap of the graphic bullets
numbering rules.
This is a follow up commit of: 66ed51712bb323bba7d1a0b0d21b256e5f5f9ccf
(Bug 128046 - List hierachy not maintained on copy'n'paste)
With this extra patch we can also copy/paste the graphic bullets
numbering rules together with their texts. However, this goes against
the MS Office and OnlyOffice behaviour, where copying text/paragraphs
only copies the text, not the list rules. So if we would just want to follow
that way, it would be enough to remove UNO_NAME_NUMBERING_RULES, EE_PARA_NUMBULLET
from SvxXMLTextImportComponentPropertyMap and SvxXMLTextExportComponentPropertyMap
See more info in:
https://bugs.documentfoundation.org/show_bug.cgi?id=166882#c5
Change-Id: I3c0b7389adf0d8efee95cc94f02905c3600342c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188532
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189572
2025-08-18 Xisco Fauli <xiscofauli@libreoffice.org> [a067cfd788121ad4042cf09acf62505caf38b66c]
tdf#167988: sc: Add UITest
Change-Id: I3ec74308d177bd0a338b346fbbdcf37a27f2cf28
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189872
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-08-18 Michael Stahl <michael.stahl@collabora.com> [aa59a1b2b8379042d9423593eb4be7f354d1ec43]
sw: prevent negative width SwTabLeftPortion
This will eventually assert in SwTabPortion::Paint():
sal/rtl/strtmpl.hxx:801: void rtl::str::new_WithLength(rtl_tString**, sal_Int32): Assertion `nLen >= 0' failed.
Also move a comment from its current misleading position (this one is
using TAB_OVER_SPACING).
Change-Id: I0a8b347f7467fcd7176b75a5a7e5e672ad5e13d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189382
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 3bfa151d6f834ef46f1f112ab670cc2d8af6de5c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189682
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 790507731174466a8a041ff8052f2f703a73a524)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189873
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-18 Mike Kaganski <mike.kaganski@collabora.com> [51233dfa4adae23b720bf150b0a62b6459f4baf8]
tdf#167988: Avoid re-asking the property value, when it has already...
...been obtained
Change-Id: I0ba8382e8839ca47b86d5ae4671c30006a81441a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187447
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189859
2025-08-18 Justin Luth <justin.luth@collabora.com> [20b57f50b1bd6191595d6f3d9a663d04b3b67591]
fix build: chart2 -Werror=maybe-uninitialized
Not sure why only I'm picking this up on Ubuntu 24.04
gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
chart2/source/controller/main/ControllerCommandDispatch.cxx:786:49:
error: ‘nFontWeight’ may be used uninitialized
[-Werror=maybe-uninitialized]
786 | bool bFontWeight = (nFontWeight > 100.0);
| ~~~~~~~~~~~~~^~~~~~~~
libreoffice/chart2/source/controller/main/
ControllerCommandDispatch.cxx:784:23:
note: ‘nFontWeight’ was declared here
784 | float nFontWeight;
Added with commit 1160d5b29a9cdae5ec6126663e888b8e5c76aba4
Author: Attila Szűcs on Thu Apr 24 11:13:08 2025 +0200
Chart Font sidebar panel
and commited on May 8.
I'm sure I sucessfully compiled on this machine since May 8,
but just now I did a make clean and hit this warning.
I added to autogen.input: --with-distro=LibreOfficeFlatpak
Anyway, now it compiles for me.
Change-Id: I32cd286cdaa607bc4062e9238e9983fd8713f67c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187125
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189858
2025-08-18 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [342ecfbd79e8b371f4ab8b3f58ec6c04b1a0c589]
tdf#166947 properly fix windows installation sets for aarch64
While https://learn.microsoft.com/en-us/windows/win32/msi/template-summary
says that the value should be Arm64 for aarch64, the installsets created
by the baseline fail to install/produce error 1620 on installation.
The missing bit was that for that to work properly the msi summary
information table must be at least schema version 500.
That is mentioned here:
https://learn.microsoft.com/en-us/windows/win32/msi/using-64-bit-windows-installer-packages
Thanks a lot to Mike Kaganski for that pointer
Change-Id: I5fc84f877c6af98c78107ff99920def7053a3950
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189870
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-17 Jean-Pierre Ledure <jp@ledure.be> [247fab274e1bebd5474dc07ffd8d3a9fc9eab5e4]
ScriptForge Fix case-sensitive Dictionary
Incomplete implementation of the
case-sensitivity of Basic dictionaries
in
CreateScriptService("Dictionary")
Change-Id: Id12b50fb7b62322909622a19fa191d3110447dae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189792
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
(cherry picked from commit 6e15cf72864f5f66c59473ff86852bb8a2965a94)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189793
2025-08-16 Xisco Fauli <xiscofauli@libreoffice.org> [9e621e5e651760a71807b2e971f633c49ce02f8b]
postgresql: upgrade to 15.14
Downloaded from https://java.lang.ArrayIndexOutOfBoundsException
Change-Id: I453e0ffe2bfb2516b646b7f62d97ef7852a2d5eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189646
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-08-16 Xisco Fauli <xiscofauli@libreoffice.org> [b9ebc827fd71ab95faf5b523b20f8343682a762d]
nss: upgrade to 3.115
Downloadedfromhttps://ftp.mozilla.org/pub/security/nss/releases/NSS_3_115_RTM/src/nss-3.115-with-nspr-4.37.tar.gz
Change-Id: I285043704622fa23a72bf5fd9932c20c2953d374
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189729
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit c2d0d27c6c132f6844b8eaaa8e3e05357f6c42d3)
/..//189733
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-08-16 Balazs Varga <balazs.varga@collabora.com> [9920cf0642b175798afb319cc4b9d8b2bef4e67c]
tdf#140027 - sc fix inserting rows before pivot table in row 1
Do not copy flags except Scenario when we insert a new row before/
after. Also remove hard attributes when we insert a very new first
row on the sheet. (Same what MSO does.)
Change-Id: Ia825683ab221f445b1c9977006b3f1cdffb2ea24
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189614
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga@collabora.com>
(cherry picked from commit f85188809d28dfe01ac8ed8b93e62e17f59773d2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189720
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-15 Noel Grandin <noel.grandin@collabora.co.uk> [909488c67f5a8d50ad2b0ce7f90870776793013c]
tdf#167956 crash opening a second document with tabbed notebookbar
Revert
commit 7359e9c742d35c999eb9add524052887805e7b26
Author: Noel Grandin <noelgrandin@gmail.com>
Date: Wed Jun 11 12:35:14 2025 +0200
tdf#166932 avoid O(n^2) loop in UpdateStylesList
Rather surprising that the original patch worked at all,
because SwStyleSheetIterator is returning a dummy SfxStyleSheetBase,
which is updated on every call to SwStyleSheetIterator::Next
and then freed when SwStyleSheetIterator destructs.
Change-Id: I310731e659b5b1bf74f15918371fdd16934d4c3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189634
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189725
2025-08-15 Noel Grandin <noel.grandin@collabora.co.uk> [80bf0371d375859adc7b2dc175190f9d62a20411]
tdf#167936 crash when opening document from UNO pipe (2)
second attempt at this, the first commit did not catch all the places
regression from
commit a6ad198d097fb4a503c8d5831d484ff46721134b
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Sat Aug 17 13:19:54 2024 +0200
tdf#158556 use more comphelper::ByteReader
Change-Id: If3ab68f7cf147082ec296d6679d48f15ec0fdcb9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189669
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
(cherry picked from commit d0530c1627cab736cf4636b4983b7d2d1f6a8882)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189676
(cherry picked from commit 1ee8eb866bc7a4ae23107e76af97ac2ab4120e49)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189719
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-15 Caolán McNamara <caolan.mcnamara@collabora.com> [6d3da3fa0146710e6f816df1ef7c787967f3b8bf]
ofz#437531730 Segv on unknown address
since:
commit 1b68f859034ecc2342a772685d6563fa1ad71f7f
Date: Sun Aug 3 01:01:38 2025 +0200
tdf#167616 EMF Add support for EMR_ANGLEARC record
nPoints can be 0 here
Change-Id: If9aa60e8abbf5e58f5224fe62b84163fbae55448
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189643
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-08-14 Patrick Luby <guibmacdev@gmail.com> [8f749cd4b3b86e5becf91eb038a1de9d9bcff0ce]
tdf#167916 Skip merging of the macabdrv1 library
macabdrv1 symbols can't be loaded with --enable-mergelibs=more so
leave it unmerged.
Change-Id: If88059783ebc2be29a9011244947671891801cab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189638
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-14 Markus Mohrhard <markus.mohrhard@googlemail.com> [7a3ce14a4444d4a464676fe54a91169c215cd0dc]
prevent crash during colorscale calculation
This should fix https://crashreport.libreoffice.org/stats/signature/static%20double%20%60anonymous%20namespace'::GetPercentile(const%20class%20std::vector%3Cdouble,std::allocator%3Cdouble%3E%20%3E%20&%20const,%20double)
Change-Id: Ifb4cc3a8120e9f85eb2029e88268e11f4ae2526a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189613
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 9d03d31dabc31902be18aa6b4905b155d06e3afa)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189619
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-14 Noel Grandin <noel.grandin@collabora.co.uk> [ac5ace88c8500988b9ed4727ff96b2547a0db2d0]
tdf#167936 crash when opening document from UNO pipe
regression from
commit a6ad198d097fb4a503c8d5831d484ff46721134b
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Sat Aug 17 13:19:54 2024 +0200
tdf#158556 use more comphelper::ByteReader
Change-Id: I2cc14d0dbb0214dcf54938796eeeebefbd86bd88
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189577
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 7e71af5af43da1f7a7cb0bc4d5319f277a67738a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189588
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-14 Markus Mohrhard <markus.mohrhard@googlemail.com> [18b40b3964f9fc658abbb6cee1d6401842ffe36c]
tdf#94259: don't use the non-existed chart view during import
During the import process the chart view shapes don't exist yet
and therefore trying to infer the title size from the chart shape
can't work. Luckily for the axis titles we can reuse the title size
that was stored in the file.
There are still small differences in the positioning of various
objects between Calc and Excel but these are unrelated to this
problem.
Change-Id: Ibe243e24f7bab3eedd06ee26037bcedeac48354e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189538
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 0bfca02bf492ec917633388aa01421a1e0dad31a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189566
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-14 Michael Stahl <michael.stahl@collabora.com> [09d9b522a95f2f4007b8262d55bfc20766aa05cc]
sw: Backspace/Delete hidden section must delete flys anchored therein
During save to ODF this asserts, or later crashes:
atrfrm.cxx:3810: void sw::CheckAnchoredFlyConsistency(const SwDoc&): Assertion `std::find(rFlys.begin(), rFlys.end(), pSpz) != rFlys.end()' failed.
Initial idea was to fix this by changing SwWrtShell to not use the
ArtificialSelection mode when a hidden section is selected - this fixes
the initial problem but there is another one!
Because ArtificialSelection is now also set in
SwXTextRange::DeleteAndInsert() and SwXTextCursor::DeleteAndInsert(),
the crash can also be reproduced by calling setString("nonempty") on a
cursor that selects multiple nodes with an object anchored on a middle
node.
So better to fix this in SwUndoSaveContent::DelContentIndex() by moving
the Replace check into the IsSelected functions, and to ignore *only*
flys on the start and the end node of the selection, so flys anchored on
the middle nodes are now deleted.
In any case for Undo to work a SwHistoryHint must be created for these
which ExcludeFlyAtStartEnd prevents so it's a different case.
This covers all the initially intended use-cases of
DelContentType::Replace, which actually only were 1-2 node selections
anyway (limited by UI); the arbitrary-sized selection cases were from
later re-uses of the flag for other use cases, and in both the Backspace
and the API case the possibility of flys anchored on middle nodes was
unfortunately missed.
Currently SwUndoSaveContent::DelContentIndex() was the only caller of
the IsSelected functions that could see a DelContentType::Replace.
(regression from commit 85376a02348810812d515ee72140dbf56f2b6040)
Change-Id: Ifc5aad47e80c638d4e7cb5f66c035fdf1e34b89f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188251
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@collabora.com>
(cherry picked from commit 40d659647d3dbb5e316963968947272f0a71104d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189438
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-14 Caolán McNamara <caolan.mcnamara@collabora.com> [098270e2c013300d5a97ee2f5b39f29f735d99b0]
cid#1660455 Overflowed constant
Change-Id: Idebcb5b87d6720c2e1b468c73bc823656dfda59d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189499
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 7e3950902feb78ea8545845f056a380495c7b2f3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189528
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-14 Markus Mohrhard <markus.mohrhard@googlemail.com> [96cca31589adf074326bbb610c7f0841d05e1420]
tdf#94627: handle range name references in formulas during XLSB import
Change-Id: I9e4f66e633740950cb568a589fd461a2b737c157
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189450
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189526
2025-08-14 Mike Kaganski <mike.kaganski@collabora.com> [f9914a8403317f84b22894fe972da029d1140614]
tdf#167849: unit test
After commit 87ef004115d07c16fe4899b3d423cc16a12a0fce (tdf#167849: don't
release embedded fonts in WinSalGraphics::ClearDevFontCache, 2025-08-07).
Change-Id: I4b2ff7e8c3a9bd71befe537d76308e18968c99c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189145
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189480
2025-08-14 Mike Kaganski <mike.kaganski@collabora.com> [6444867c41304fee4432bc50448fe48f61c5bf1c]
Use Gdiplus::PrivateFontCollection to obtain family name from TTF
This avoids the path length limitation of CreateScalableFontResourceW,
which manifests e.g. in CI - see https://ci.libreoffice.org/job/gerrit_windows/203249/console:
warn:vcl.fonts:3512:11352:vcl/win/gdi/salfont.cxx:962: CreateScalableFontResource failed for C:\cygwin64\home\tdf\jenkins\workspace\gerrit_windows\tempdir\tesE8AE.tmp Manbow Solid0.ttf C:\cygwin64\home\tdf\jenkins\workspace\gerrit_windows\workdir\CppunitTest\sw_uiwriter10.test.user\user\temp\embeddedfonts\fromdocs 0
warn:vcl.fonts:3512:11352:vcl/win/gdi/salfont.cxx:994: error extracting font family from file:///C:/cygwin64/home/tdf/jenkins/workspace/gerrit_windows/workdir/CppunitTest/sw_uiwriter10.test.user/user/temp/embeddedfonts/fromdocs/Manbow Solid0.ttf
The implementation is put into vcl/win/gdi/salgdi_gdiplus.cxx, because
the GDI+ headers create conflicts when put into vcl/win/gdi/salfont.cxx;
the file name of salgdi_gdiplus.cxx looked relevant (although I don't
see any actual GDI+-related code there).
By the way, this new implementation seems to also perform better: in a
test, it finished in ~3 ms in a dbgutil build, while the previous code
took about 8 ms in an optimized build.
Change-Id: I95b09847e2fcba13489050d3a61a56776d8c8e47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189186
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189527
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [8b236227976b3b5c78afc916ea4acefd4b4b8c58]
cid#1659808 Overflowed constant
Change-Id: Ifd0e263baa9c6d2e289d0a6e1be3498c43e27594
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189500
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 1d5a01da2f0e99d2a95ced541b9c4ee6d3fa6eff)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189525
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Markus Mohrhard <markus.mohrhard@googlemail.com> [07f1d12f67dfcd447a75dde2b96d7c1e76432e18]
tdf#108244: generate note caption always at the beginning of the export
Change-Id: I160f57cf43227e7a432536134da242a4b3053d4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189453
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Jenkins
(cherry picked from commit beeb2acc1c6ce3cf9b076b8e164fdbe79a0a7b51)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189474
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [aa13ea790a6aa8462d9698d828638d637a4bfacc]
cid#1660121 Resource leak
and
cid#1660097 Resource leak
Change-Id: Ife9963022f93f1288439928156a10a10dc25da9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188592
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 96939c730332d4f65d02bd633bb0c8bf1bbad5d4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189491
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [ae0897f051e45a08c3d53c9973b9a8049eecc974]
cid#1660391 Resource leak
Change-Id: Iddabd4ab9c06f508bd328d34013d038ebc039020
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188590
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 5bae1a972389eba54d2806171c226649a23c2a57)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189493
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [00f074d7187fd8eb1486fadaa14eb5e8132a96d2]
cid#1660007 Overflowed constant
Change-Id: I25ce37f3b792f21284a3b12c34eaeff9a378b37b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188718
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit cb78333ec14a7664f2fae9bd6a9ef6b32e45cfe0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189489
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [926d43c7cfef2e8c27aa5a83b74935665eaf3eb4]
cid#1660282 Resource leak
this all looks a bit error prone, but minimally fix this.
Change-Id: Icfaf38c3c2028cc591f5c4bae0317587eccf5d48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188591
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit c6d852d6ee54e3261103f253267bd676195b327a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189490
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Mike Kaganski <mike.kaganski@collabora.com> [6f6c4408bb9dd6e9bad72e76f9bb80110a534dfc]
tdf#167849: don't release embedded fonts in WinSalGraphics::ClearDevFontCache
Commit 8e63934c398dd5065f3589c8a7d1b3008f5514d1 (WIN separate LO shared and
embedded fonts, 2019-07-05) made the call only release embedded fonts, not
all temporary fonts. But embedded fonts must not be released there, too:
they are not re-added back by anything. Therefore, any reload of font data
drops all open documents' embedded fonts: this could be opening another
document with embedded font, or a user installing a font in their system.
Clearing embedded fonts itself could be a useful operation, performed when
a document ownong the font is closed. But that must be implemented properly
for all platforms, counting references for each such font; additionally, it
could handle restricted fonts correctly, not showing them in font list.
Change-Id: I239f15cef64c94522e70e17e295b572664317bfc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189100
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189479
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [f09d83a7ac10374b0a81f30ec65cd551fcdb742d]
cid#1660127 Resource leak
Change-Id: I789793eecc6642f786edd43c30fb6a05feded4bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188819
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit e6f5e1e45b882ac98f6d31882ebb6e950994d27d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189487
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [2b8315ebcef9143a6c00432c2982d47710a9d7ce]
cid#1659773 Overflowed constant
Change-Id: I4a559b64cca08fcf45716469807b3a40f0f65a9b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188711
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit b17ea316f2e23e1569aacebb719afa39b26e8b1f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189488
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [fae1a210dcc817862045e7db6edf9eabe60d7557]
cid#1660822 Different smart pointers managing same raw pointer
and
cid#1660800 Different smart pointers managing same raw pointer
Change-Id: Ifea613279119ab411414b250a029e0e231b5def8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189141
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189486
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [d6f97dc4ff5249637650b256ffa7cbd80a151985]
expand default argument of unusual SetPara method
Change-Id: I8e6212f1e2b9905929e967ba3da1869d06c43d89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189140
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189485
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [f5dee7f91e47c435c13797ba5848a96fa481956e]
cid#1659628 can only reach this line in the case of a caught exception
so move it into that block protected by the rGuard.lock()
Change-Id: I8e0bde5a7de6ec5428b405f734d6c8e54fb1645e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188994
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit a2bbf65bb44229cadd1bc325ef174322b625a36b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189483
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [62ec25eac3fdb06435750d323db3e1c693dfe682]
cid#1660111 Overflowed constant
Change-Id: I5afba320e5792d7b491d704c859e2b60a2b64f8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189274
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit d0b48fac7e8f73bd058c83d76580496be2c54fe6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189360
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [30bdffb69d8dba0d453aefd488c7d04e58e78216]
cid#1660214 Overflowed constant
make types consistent here
Change-Id: I9e0b44d53d0affa2220f956dcaef8a613ff51e7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189411
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit e3a9f2bb2f370e76fe641e7de743bf3ed8fc00da)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189482
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [9855b5818f09d91e5af06a2223688e4fefc5309d]
cid#1660359 Overflowed constant
Change-Id: I8bfa4d1280f5173d811314ff6354e57db3d2fcba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189410
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 44ffdd91804336ba5bcdbad6a1bcc1747c86d504)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189481
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Markus Mohrhard <markus.mohrhard@googlemail.com> [447ab2b420d16b98c48809ee968c91136aa385c6]
tdf#87058: handle column label references after inserting rows below title
Change-Id: I49d066e6466b3bd1368903a150a596d8dc40226e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189425
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit d85334664cae22fa7bbc3852d260c0ca7ad704a2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189475
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Rene Engelhard <rene@rene-engelhard.de> [d57d3e9812159ff6e8df788049c8a903e1517b7b]
add EUR for Bulgaria/Lew
Bulgaria will join Eurozone 2026-01-01 at which time around the default
needs to be switched
see https://www.ecb.europa.eu/press/pr/date/2025/html/ecb.pr250708~b9676a9fa8.de.html for the conversion rate
This is the < 26.2 version including the euro wizard (cf.
b1a2f727ca99ecd3402d4b051b99cbfd24266e59)
Change-Id: I840ddda4308549703c53f998812848888dd830f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189279
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2025-08-13 Rene Engelhard <rene@rene-engelhard.de> [61bf594223d8952b8db0267306192a55d3f92d9a]
fix typo
for completeness...
Change-Id: Icdd61311498538d28fc27975dfe6bb20d9a0417b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189280
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [2ef27823cacd4cf788b0d5236cf721bbce62fbe0]
cid#1660069 Division or modulo by float zero
and
cid#1660394 Division or modulo by float zero
Change-Id: I10b0b100ff3fe99682bf4e0da6bc9ef3e356a996
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189257
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 56c55dceea7ddb15bf42e68d58a2eb23bb5bcd05)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189293
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Caolán McNamara <caolan.mcnamara@collabora.com> [9d8f574027041ae58111df4252011b8c00d498ff]
cid#1660410 Overflowed constant
Change-Id: Ib1c9360df3667de3f99fde9520ee4eecc06cc502
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189275
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit ef04435193dd01975446bfbb2f5384eab95ed898)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189361
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-13 Michael Stahl <michael.stahl@collabora.com> [8c6129cfe0669171d502d6662b2b4e31d8ac5ca0]
tdf#167910 filter: xhtml: try to handle combinations of underline and overline
Change-Id: I2dc735157d5278fb8e95881ef967443a48fee10f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189416
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189441
2025-08-13 Michael Stahl <michael.stahl@collabora.com> [809c6ea37f3a6b06569bdf3f9049bf2dd8238cc6]
tdf#167910 filter: xhtml: simplistic conversion of overline to CSS
Change-Id: Id577cf71cb383260c4c66ab929794c02911d01c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189415
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189440
2025-08-12 Michael Stahl <michael.stahl@collabora.com> [b75c382be45616a29ffc67cec47d8772e86a74b7]
tdf#166953 writerfilter: add column width when adding extra cell
It's not so obvious how the cell widths are set...
1. The table gets USHRT_MAX as initial width
2. All the cells in the table get USHRT_MAX/nCells as initial width
(this is SwFrameSizeItem in box item set)
3. Table property "Width" is set -> this scales all the box widths
4. Row property "TableColumnSeparators" is set; this is *relative* widths
to a hard-coded value of TableColumnRelativeSum=10000
Evidently the result is bad if the number of separators is too low.
(regression from commit 038473595ed266d15a788d8f97781cbaf066cfe7)
Change-Id: Ie71889a074bff43d8f0c34ccefb4d30ed0a9f0c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188153
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 23e308d5e02ee45ef589d3fddf53dabaa12aadfe)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188207
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189418
2025-08-12 Michael Stahl <michael.stahl@collabora.com> [a3821860987575d8daa4b676bdd1c8130a4943d0]
sw: fix rounding problem in lcl_SetTableBoxWidths2()
Prevents bunch of warnings like:
swnewtable.cxx:2525: Line width differs from table width: 14148 current [0]: 14144
Change-Id: Ic24096d91ad6646635038a06b74251e3bcbad134
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188152
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 65987cb2f8ed6b6cf67032cbce4c5e58f2577803)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188202
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189417
2025-08-12 Caolán McNamara <caolan.mcnamara@collabora.com> [54349933046250462e442461e2dd0f2f89819618]
null deref of pActualSection seen
#0 0x00007b8ff1659933 in std::__uniq_ptr_impl<SwActualSection, std::default_delete<SwActualSection> >::reset (
__p=<error reading variable: Cannot access memory at address 0x0>, this=0x7fff18bf8ff8)
at /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/unique_ptr.h:201
#1 std::unique_ptr<SwActualSection, std::default_delete<SwActualSection> >::reset (
__p=<error reading variable: Cannot access memory at address 0x0>, this=0x7fff18bf8ff8)
at /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/unique_ptr.h:501
#2 InsertCnt_ (pLay=<optimized out>, pLay@entry=0x5fad9100, pDoc=pDoc@entry=0x5e955800, nIndex=..., bPages=bPages@entry=false,
nEndIndex=..., nEndIndex@entry=..., pPrv=<optimized out>, eMode=<optimized out>)
at sw/source/core/layout/frmtool.cxx:1915
#3 0x00007b8ff165ac01 in MakeFrames (pDoc=pDoc@entry=0x5e955800, rSttIdx=..., rEndIdx=...)
at sw/source/core/layout/frmtool.cxx:2211
#4 0x00007b8ff1862f31 in SwUndoDelete::UndoImpl (this=<optimized out>, rContext=...)
at sw/source/core/undo/undel.cxx:1184
#5 0x00007b8ff18645aa in SwUndo::UndoWithContext (this=0x62c9c1e0, rContext=...)
at sw/source/core/undo/undobj.cxx:225
#6 0x00007b8ffecc6f91 in SfxUndoManager::ImplUndo (this=0x5ea06758, i_contextOrNull=0x7fff18bf9580)
at svl/source/undo/undo.cxx:732
#7 0x00007b8ffecc7489 in SfxUndoManager::UndoWithContext (this=<optimized out>, i_context=...)
at svl/source/undo/undo.cxx:682
#8 0x00007b8ff184ddd8 in sw::UndoManager::impl_DoUndoRedo (this=0x5ea06750, undoOrRedo=sw::UndoManager::UndoOrRedoType::Undo,
nUndoOffset=<optimized out>) at sw/source/core/undo/docundo.cxx:700
#9 0x00007b8ff1591a3b in SwEditShell::Undo (this=this@entry=0x5eaf4900, nCount=nCount@entry=40, nOffset=nOffset@entry=0)
at sw/source/core/edit/edundo.cxx:143
#10 0x00007b8ff1f58262 in SwWrtShell::Do (this=this@entry=0x5eaf4900, eDoType=eDoType@entry=SwWrtShell::UNDO,
nCnt=nCnt@entry=40, nOffset=<optimized out>) at sw/source/uibase/wrtsh/wrtundo.cxx:45
#11 0x00007b8ff1d4934a in SwBaseShell::ExecUndo (this=<optimized out>, rReq=...)
at sw/source/uibase/shells/basesh.cxx:669
#12 0x00007b8ffe7fb3ef in SfxDispatcher::Call_Impl (this=0x5e9cb020, rShell=..., rSlot=..., rReq=..., bRecord=<optimized out>)
at sfx2/source/control/dispatch.cxx:255
#13 0x00007b8ffe802af7 in SfxDispatcher::Execute (this=0x5e9cb020, nSlot=<optimized out>,
nCall=nCall@entry=SfxCallMode::SYNCHRON, pArgs=pArgs@entry=0x7fff18bf9ca0, pInternalArgs=pInternalArgs@entry=0x7fff18bf9c30,
nModi=0) at sfx2/source/control/dispatch.cxx:813
Change-Id: I3e3bd43f853521163581a7e2d575c1ebe7dc2bfb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189352
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 4d48d43a68b5cdda15092d0ae9b25d48bce6d1de)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189405
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-12 Oliver Specht <oliver.specht@cib.de> [1ae15f53c03c966776c46ce4dc87aafea751337e]
tdf#164676 fix modify handler in variables tab page
Change-Id: Ifb5e71bd14b7938d714873616dd63794e8e1d87b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189393
Tested-by: Jenkins
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
(cherry picked from commit 2081fc359b25b7e4262880cccf7551a4632b3b35)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189420
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-12 Xisco Fauli <xiscofauli@libreoffice.org> [4f05e09bd0e54dc0bd1102c15e2ee62a7a92d9fd]
tdf#167901: Revert "tdf#167075: init doc shell before pasting as png/bmp"
This reverts commit eb99e28a92517cac9534a6a52b9266777f735ce5.
Reverting for now until I find a better solution, specially towards
LibreOffice 25.8.0. The fix for tdf#167075 only works when working
with one table but it crashes when working with more than one table,
so it's better to have tdf#167075 reproducible than a crash
I'll add a test in a follow-up commit
Change-Id: I1407c430792f23ae51eafbe39ee52b13217842b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189380
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-08-12 Xisco Fauli <xiscofauli@libreoffice.org> [9915e4469c8657592725432beae8638bb3f823f4]
related tdf#167859: fix logic
after
commit 4862b5efbd6724d01e04b0951188f2a18c9362e8
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date: Fri Aug 8 10:51:41 2025 +0200
tdf#167859: check xChartType
Change-Id: I58ac276a21e6d6ef08b831fd723783ddb68410a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189364
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189375
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-08-12 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [e7a3b308fdd787c7913197c397df5943fca8dc08]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to 934e075aff11f8218091de6da6ac497ee002b188
- update translations for 25.8.0 rc4
and force-fix errors using pocheck
Change-Id: I119a7ec7de74160aef23ac9ae3ee130800bd4f19
2025-08-12 Caolán McNamara <caolan.mcnamara@collabora.com> [33e5950bd1549c0b2e45c00e209daa20910096bf]
cid#1659737 Dereference after null check
Change-Id: I2a3da97e7a9bceedb3b9940d5625010ab215fdaf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189334
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 1313be884c4ded639a5f53694c82a1cf2e77fe70)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189403
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-12 Stephan Bergmann <stephan.bergmann@collabora.com> [d4897dd10073a8e52ea5094183f20bbe749bfe88]
Flatpak build needs --without-system-colamd now
...after e4dc378991002cdc64909af581053d588cc92a0a "implement
--with-system-colamd (for internal lpsolve)"
Change-Id: Ied16c6e9c9e80ea2c0f0df471fe03980f5cdcd4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189383
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
(cherry picked from commit 2e87ee28fcf82e4235920402fc3e2ddd23cbff51)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189388
2025-08-12 Regina Henschel <rb.henschel@t-online.de> [a98b1523141a8c3bed01ee9781f6b4844960bd73]
tdf#166647 avoid duplicating slideshow user paint
When a user enables 'mouse as pen' before starting the slideshow, then
his paintings are saved as persistent shapes when he exits slideshow.
These shapes were then converted back to paintings when the user starts
the slideshow again, so that they are visible againg.
But these old paintings were treated as new paintings when the user
exits slideshow and were then saved again as shape to the page although
the page contains these shapes already. Thus with every new start and
exit of the slideshow the shapes were duplicated. Because the duplicates
are at exactly the same place as the originals, you do not notice it
immediately. But you can see the duplicates in the Navigator and notice
it in the file size.
The fix introduces a flag that is set at the paintings from the existing
shapes when the slideshow is started. This flag is then used to skip those
paintings from converting to shapes when slideshow is finished.
Change-Id: I93324d157b1b802d7b8e24858034d2fdc5d71b45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188364
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189365
2025-08-11 Mike Kaganski <mike.kaganski@collabora.com> [b285b73c6739d08fc6e422ff147e69c0c660390b]
tdf#162342: workaround out-of-order context stack pop
Turns out, the context stack is populated in one order, but emptied in
another. Commit e63a75e00dcd797b0bd061add3c72dcb7b353007 (tdf#158586
writerfilter: RTF import: fix \page \sect \skbnone, 2024-02-01) added
yet another case, which resulted in m_pTopContext being empty at the
moment when section properties should have been applied (see "needed
for page properties" comment in DomainMapper::sprmWithProps; that code
wasn't reached because of (!rContext) check above).
But that isn't the only case; I tried to assert in non-RTF cases, and
it fired in `make check`, too.
So here is an UGLY HACK. I repair the stack when it's popped out of
order. This pleads for a proper fix, but the effort will be far from
trivial.
Change-Id: I1a5c646188f3da4842d103b8edeb11b801fea830
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188449
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189308
2025-08-11 Mike Kaganski <mike.kaganski@collabora.com> [8a2d938e2dc9a8f080c96961489c0233d19ddc89]
tdf#165564: refactor the "Removes additional spaces in export" part
Commit 90ce84a5dd371c804af19e97896a5e19a3ebf8ca (tdf#165564 RTF:Fix
export and import of footnotes/endnotes, 2025-05-08) workarounded
an extra space added after \super keyword, when EndRunProperties()
didn't produce an output. To do that, it introduced a return value
from EndRunProperties, checked in TextFootnote_Impl.
This change simplifies this, reverting a part of the said commit,
which added that return value, in favor of dropping an unnecessary
space after {\super, which was retained for some reason in commit
49877dc91b2f91baa656facd462ac1b1e832f182 (sw:rtf - timely export
of footnote char properties, 2017-08-24). There is no need in the
space between keywords - only between the last keyword and text.
Change-Id: If13bf760feb9cb42cb39fc7de39eed6944a869ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188432
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189307
2025-08-11 Mike Kaganski <mike.kaganski@collabora.com> [320f2d4d55831127aa749f7858ac11ee3a504ffe]
tdf#167569: Reimplement RTF character formatting output
The rules for outputting character-level formatting to RTF are utterly
convoluted. The formatting may be output in different context (like in
style definitions, runs, etc.); and it consists of two distinct parts:
some keywords are independent of current run's script; other depend on
the script, and may require either a "normal" keyword, like \fN, or an
"associated" keyword, such as \afN. The order of script group keyword
blocks (\loch, \dbch, etc.) is also important. It is documented (very
poorly) in "Rich Text Format (RTF) Specification, Version 1.9.1", sect.
Font (Character) Formatting Properties.
Previously, we collected character formatting, encoded as RTF keywords,
in the order of iteration of text properties in the export code.
Commit f97af19460fbd7483a0e1c1d0137e814f5390e69
tdf#137894 separate associated character properties
2020-11-25
had split keywords of different script groups into separate strings in
an attempt to combine them eventually in a sane order according to the
script. However, the buffers were still filled by the keywords as they
appeared in iteration, when the script of the run was still unknown. A
decision was to always emit \loch keywords as "normal", and all others
as "associated" - which was wrong e.g. for RTL and CJK runs. It could
happen to look better in LibreOffice in some cases; but it would still
look differently in Word. This can be seen in the bugdoc in tdf#141671,
which looked OK in LO after the fix to that bug, but not in Word.
This changes how we produce character formatting keywords.
1. Character formatting is now collected separately from block-level;
2. It is stored in an SfxItemSet, and newer properties overwrite older
propertiew with the same which id, avoiding some redundancy;
3. The generation of the actual RTF markup is therefore delayed, which
means that the "current" position in the exported document (as seen
e.g. by MSWordExportBase::HasItem) could change by that time. Since
handling some properties needs other accompanying properties (e.g.,
handling RES_CHRATR_UNDERLINE needs RES_CHRATR_WORDLINEMODE), those
accompanying items are collected together with the primary item.
4. When collecting the accompanying data, side effects could appear if
they are put into the same SfxItemSet. E.g., RES_CHRATR_ESCAPEMENT
needs RES_CHRATR_FONTSIZE; but the latter, when present in the set,
will itself create RTF markup for font size. So it must be added in
a way to avoid output of its RTF markup, when the run itself has no
explicit font size set. For that, a parent set is introduced; items
stored there will be reachable, when "search in parent" is used.
The function creating the resulting RTF markup tries to follow specs wrt
the order and use of associated keywords for scripts. Of course, I could
be wrong in the interpretation of the spec. At least some documents that
I tested using Word seem to improve with this change.
Change-Id: I3761c4c84f137be8ff9de0eec5ed8b229146325a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188420
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189306
2025-08-11 Mike Kaganski <mike.kaganski@collabora.com> [5484fb8ef11d5dd843493f02e27cee3651156abe]
Return sal_Int32 from RtfExport::GetColor, for ease of use
sal_uInt16 requires explicit cast to convert / append to string.
Change-Id: Iaa900a570f2c5e096415b5c17357484fd5b8f754
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188052
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189305
2025-08-11 Mike Kaganski <mike.kaganski@collabora.com> [1749f616197fc10100ceacd974b4e45ce8a02bcd]
tdf#167679: RTF already can export \brdrnone
In commit f84b33275f6cce21e93e5dd20f3de5df84df0276 (tdf#129522
ww8import/export: allow char shadow_NONE overrides, 2020-01-04),
export of char shadow was implemented, which made CharBorder to
be called for missing borderline. But it made an exception for
RTF, because at that time, its code couldn't handle that.
In commit eca3ce35fe9a346965a32f42d02cb6d3f5a3982f (tdf#129631
writerfilter,sw: RTF import of invalid border..., 2022-08-11),
RTF export got ability to handle that.
Removal of the exception for RTF fixed missing export of "no
border" and "no shadow" character formatting.
Change-Id: I5f23b09558d32b403e0c26c727ee01f79374e54d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188418
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189304
2025-08-11 Mike Kaganski <mike.kaganski@collabora.com> [66a612ee153e64afd5fe7024555be960e56c0a89]
tdf#167661: collect bullet fonts before exporting font table
The problem was, that InitFontTable, used to collect all fonts used
in the document, didn't handle bullets. When font table was written,
some fonts needed for bullets could be still missing from it; only
when writing list levels, these fonts were added to maFonts.
It might seem that that is a bug in SwDoc::ForEachCharacterFontItem,
called from InitFontTable. It might be; and maybe even needs to be
addressed at some point (though I don't know which side effects it
could have). But in the case of export to RTF, this wouldn't fix it
completely, because there is some special processing of bullets in
MSWordExportBase::SubstituteBullet, which might change the exported
font name; therefore, it could happen to still be not covered by an
iteration over actual document's fonts.
1. Extract the code filling used numbering rules in GetNumberingId,
into a separate function (EnsureUsedNumberingTable).
2. Extract the code getting bullet string + font in NumberingLevel,
into a separate function (GetNumberingLevelBulletStringAndFont).
3. In wwFontHelper::InitFontTable, use these functions to iterate
the used numbering rules, and handle fonts of these. To do that,
let the function take an Export object.
Change-Id: Ib7ecdeb9908cd3bd53346ccb035d623fa603db0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188277
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189303
2025-08-11 Mike Kaganski <mike.kaganski@collabora.com> [77db5679983cc58603c2001a9b8dfcea7faa8574]
tdf#167660: export \uN as signed 16-bit values
This is as specified in Rich Text Format (RTF) Specification, Version 1.9.1,
"Unicode RTF"; and this matches what Word outputs.
Change-Id: Ia1b7c2dc40d5908a78a30ea249c1ec0a13945b87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188257
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189302
2025-08-11 Mike Kaganski <mike.kaganski@collabora.com> [d12b0a80f29bea869b0f9f109592e5401e9a53dc]
tdf#167538, tdf#167540: better check if the line is dummy
The check in SwTextFrame::PaintExtraData is made the same as in
SwTextFormatter::CalcRealHeight (except for bNewLine, which was
specific to the latter). It allows to recognize real dummy lines
uniformly, and produce line numbering for trailing empty lines.
Change-Id: If2bad4b998b0c48f8f79da52a081e6df7565eee3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188016
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189301
2025-08-11 Mike Kaganski <mike.kaganski@collabora.com> [a84e0fd218ad6824326b980a63806d4684af29b0]
tdf#167535: Ignore dummy anchor nodes in line numbering (take 2)
Commit 441aed20b95ee40dec1df72fb8e8167d0e48c0c4 (tdf#167379 sw floattable:
make dummy paragraph from DOCX import less visible, 2025-07-10) introduced
dummy nodes as invisible anchors for floating tables without normal anchor
nodes. These nodes are not part of actual content; use suppressLineNumbers
property in OOXMLFastContextHandlerTextTable::lcl_startFastElement, which
avoids their use in line numbering.
Change-Id: Id1703c10ede6960499e08758c250d6d561d1f07f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188011
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189300
2025-08-11 Mike Kaganski <mike.kaganski@collabora.com> [40ce124cc68248527b0c1ea5b5c7662132c0600a]
tdf#167526: write floating tables anchored to dummy nodes immediately
Commit 441aed20b95ee40dec1df72fb8e8167d0e48c0c4 (tdf#167379 sw floattable:
make dummy paragraph from DOCX import less visible, 2025-07-10) introduced
dummy nodes as invisible anchors for floating tables without normal anchor
nodes. Commit c9851022d102a2abfc16c033c0249f24573300e7 took care to avoid
their export to DOCX, not calling OutputTextNode in OutputContentNode for
them, and handling their tables as soon as the next text node is handled.
However, this didn't work, when the next node wasn't a text node. In that
case, the dummy paragraph wasn't detected as such in CollectFloatingTables,
and got exported as normal; and after reload, it appeared after its table.
Fix that by making sure to write floating tables as soon as the dummy node
is handled.
1. Make previously static checkAndWriteFloatingTables a virtual method of
AttributeOutputBase, implemented in DocxAttributeOutput.
2. Let MSWordExportBase::OutputTextNode check if it handles a dummy node,
and if so, call AttrOutput().CheckAndWriteFloatingTables, and return.
3. Revert to calling OutputTextNode in MSWordExportBase::OutputContentNode
unconditionally.
This simplifies the logic a bit, avoiding the need to care about postponed
actions, potentially in multiple places.
Change-Id: I41b57103fc8b4522e3b5b1810389db078719b9b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187975
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189299
2025-08-11 Mike Kaganski <mike.kaganski@collabora.com> [0aeaa35972a3915491ca288d201e30246bf916d8]
tdf#167569: RTF: Export paragraph mark properties
In commits:
5ba30f588d6e41a13d68b1461345fca7a7ca61ac
tdf#64222 sw: better DOCX import/export of paragraph marker formatting
2019-09-17
6e1c8bcec511444d2d51c5c5143be56d1900e5e6
tdf#150613 sw: better DOC import of paragraph marker formatting
2022-09-20
6249858a8972aef077e0249bd93cfe8f01bce4d6
sw: ODT import/export of DOCX's paragraph marker formatting
2022-12-19
a25eda715591cfa96136bcfd95360156516239d1
tdf#131386 writerfilter: RTF import paragraph mark formatting
2023-01-13
import and export of paragraph marker (as defined by Word and its file formats)
was implemented, except for export to RTF. This change implements the latter.
Change-Id: I2208a416377be42d2e6c5d5042cb92bc8109b4c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188084
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189296
2025-08-11 Mike Kaganski <mike.kaganski@collabora.com> [73e319b84a6c1ff7c4255aac5fcb1aa20f487196]
tdf#167512: don't avoid resetting paragraphs' properties in fly
Commit 5bbc027d5dae3472223538b13933ff821e027737 (cws-vmiklos01.diff:
Better RTF export filter, 2010-09-17) introduced RtfAttributeOutput
and its StartParagraphProperties, where output of \pard\plain was
skipped when in fly. The reason likely was, that at that time, text
boxes were output using an "old-style" method, where text box was
purely a paragraph-level formatting. This created a problem: list
settings weren't reset for following paragraphs, so lists continued
incorrectly.
Commit d53dd70b15f0e3f7c8a05a93f8fcd70e1147c1f7 (sw: rework RTF
export of text frames, 2013-04-12) reimplemented text box export to
use a "new-style" frames (using \shp ... \shptxt markup). This made
it possible to restore resetting of paragraph properties, without
breaking text boxes. This is done here.
Change-Id: Idaabece2a658845906463c942aad45a142f87633
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187920
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189295
2025-08-11 Bartosz Kosiorek <gang65@poczta.onet.pl> [cdf04ce1474fdba48018752715202d86455b8238]
tdf#103859 EMF Fix quality of EMR_ELLIPSE by using Bazier curve for drawing
Change-Id: I7eaca22dac921229b4a88e07739d379948730bd9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189024
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Tested-by: Jenkins
(cherry picked from commit ccf1476f70d39797f968444ac585c19b0edbff36)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189215
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-11 Caolán McNamara <caolan.mcnamara@collabora.com> [d66e7ad9c66c979135cc648e649456792c3fb1ee]
cid#1660818 Dereference null return value
Change-Id: Iee0004db9ad48e8753c5570fe6c8ebc31b98fd1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189263
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 39f512b4e384b39730a637392ff48897eee21331)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189291
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-11 Caolán McNamara <caolan.mcnamara@collabora.com> [8f84f585c3eb5ade04d7f8f29564300669c5e5b3]
cid#1660804 Dereference null return value
Change-Id: Ib53ec6473809dc99ada574827a378a0ab7b664d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189264
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 1d3efa2ada37940200f3eed298c9f859a592ae77)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189289
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-10 Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com> [ef51b4573d5475893e13723b35ccb8e08a903d50]
tdf#167845 Don't preselect the template path
When saving a doc which was based on a template,
don't preselect the path where the template was stored.
Instead, preselect the last used path from the Save dialog.
Change-Id: I484e5a908cc739618683b6c2e2b4a7fda4a66232
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189053
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com>
(cherry picked from commit a4349c502eb2169b3f83d58e49a7871a341daf76)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189072
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-08-10 Mike Kaganski <mike.kaganski@collabora.com> [71c6a452de79f7633ec9ae70b42114d58e313d8d]
Fix a memory leak
Value returned from CommandLineToArgvW must be disposed using LocalFree.
Change-Id: I7abd2f3884620952aecd34bd66a9a1df63dfcb88
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188225
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 12149d9f312d580d8c4b1b571d6dda0a6294101d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189298
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-08-10 Xisco Fauli <xiscofauli@libreoffice.org> [8cc5eaffce520ce93e81e108c2c28dc301d06c8d]
tdf#167875: check GetLower()
After
commit 1b03f6ea0362a38c6c4e5e767fcb5cf87ddd28dd
Author: Ujjawal Kumar <randomforest33@gmail.com>
Date: Thu Mar 13 20:42:21 2025 +0530
tdf#149825 Add command to insert a paragraph break before table
Previously, I pushed a blind fix for it in
commit 22a4e2df6f521a5baf1abfd9d4bf6da116933ed8
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date: Thu Aug 7 19:59:47 2025 +0200
crashreporting: check Lower()
Change-Id: Ied2e14224adcf71c0c438df13506e684136b7f6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189278
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 48ff1bbbe90001716e7421c5ebd30e2e635fe99e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189287
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-08-10 Xisco Fauli <xiscofauli@libreoffice.org> [67f1a0df0cd597e5d2732a04f2f964d58813d58a]
poppler: upgrade to 25.08
Downloaded from https://poppler.freedesktop.org/poppler-25.08.0.tar.xz
Change-Id: Ifdc52a9b6d1412d3fe70baa2e9fb367a476c05fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189028
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 3fe840e33667c12d615774cd0a3a5aaa97f7b547)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189039
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-08-10 Mike Kaganski <mike.kaganski@collabora.com> [e6f843c1c5c2cb075ff0ae358735c5801e56f51f]
tdf#167591: Convert date string to date early
To insert a default value, ODatabaseForm gets its value from column
properties, and passes to XColumnUpdate. The problem appeared when
the default was a localized date string, like "20/07/25".
The string was set as the value of a ORowSetValue; then, when its
value was requested, its getDate() called DBTypeConversion::toDate,
which only handles ISO date strings. But for correct conversion, not
only the string is needed, but also its format key. This information
is already lost at that point. The conversion failed, and the result
date was invalid, somewhere in the beginning of CE.
Try to overcome this problem by converting the default value from
date string to date(time) where all the information is available.
Change-Id: I73e96e433895da18cbf6145ffc26b16fa4844452
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188093
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188682
2025-08-10 Mike Kaganski <mike.kaganski@collabora.com> [5633027b0d1af9c627d250b32284901d9bae20c7]
Flatten ODatabaseForm::reset_impl a bit
Change-Id: I47ad680ef80ed5ed40b329ff83d2c38506a64d54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188085
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188681
2025-08-10 Mike Kaganski <mike.kaganski@collabora.com> [86c9b2166ab66882563839f06a8478b85274b109]
Related: tdf#167591 Make STANDARD_DB_DATE more standard
For some reason, STANDARD_DB_DATE was 1900-01-01, which differs from
the most used epoch of 1899-12-30 (see e.g. the default initializer
of ImpSvNumberformatScan). This was triggering tdf#167591, where the
correction added two days of the difference to the date entered into
the default value box.
I couldn't find how/if this value could get exposed to API; so let's
try to standardise it a bit.
Change-Id: I9207cbe3a5a91ca63f3f97792da0c5ad2931ffa8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188092
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188680
2025-08-10 Mike Kaganski <mike.kaganski@collabora.com> [ff73678db107abc1038cfe396e5cd9350e8d7a3c]
tdf#167591: Only apply date correction, when sDefault wasn't date string
The correction is needed to adjust a date in the data source's epoch
The problem was, java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
or"0720"conversionfrom string double the
epoch;
java.lang.StringIndexOutOfBoundsException: Range [42, 8) out of bounds for length 43
string was date string,and so
should be skippedjava.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
Change-: Ia1ba2b1b5dc88d66d524ff03fecc028f7ebf3336
Reviewed{
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188679
2025-08-09 Xisco Fauli <xiscofauli@libreoffice.org> [a08750535c34a315adb5a6ada5f3af7187f066fe]
zxcvbn-c: upgrade to 2.6
* 0001-There-is-no-std-basic_string-int.patch.1 and 0001-use-const-for-these-arrays.patch.1
are fixed uptream now
Downloaded from https://github.com/tsyrogit/zxcvbn-c/archive/refs/tags/v2.5.tar.gz
Change-Id: I80b2d5f2b9a6a6bb274f56098f72010291934b21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189041
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189096
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-08-08 Xisco Fauli <xiscofauli@libreoffice.org> [83cf3a8152e2fd025e925f3d3bc08eb2e6863639]
libffi: upgrade to 3.5.2
Downloaded from https://github.com/libffi/libffi/releases/download/v3.5.2/libffi-3.5.2.tar.gz
Change-Id: I38f09c9821b13773bc816afc2d5f027fdf4b7964
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189030
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit ed0414c4b8995cb62d577e9f1de5647660e597cf)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189037
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-08-08 Xisco Fauli <xiscofauli@libreoffice.org> [184a5a6453146ec15e63c649c383abceb8743599]
crashreporting: check Lower()
See https://crashreport.libreoffice.org/stats/signature/SwTableShell::GetState(SfxItemSet%20&)
which is new in 25.8 after
commit 1b03f6ea0362a38c6c4e5e767fcb5cf87ddd28dd
Author: Ujjawal Kumar <randomforest33@gmail.com>
Date: Thu Mar 13 20:42:21 2025 +0530
tdf#149825 Add command to insert a paragraph break before table
I couldn't find a way to reproduce it but Lower() might return
nullptr as it uses SAL_RET_MAYBENULL. why the MSVC Analyzer
didn't flag it is a mistery to me though
Change-Id: I3002ee170009cd460f3a9792c5b95d76ae1ca2ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189129
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 22a4e2df6f521a5baf1abfd9d4bf6da116933ed8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189142
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-08 Bartosz Kosiorek <gang65@poczta.onet.pl> [5b32c63c6569996acc39216f81520291f15c7659]
tdf#103859 EMF Fix quality of EMR_ROUNDRECT by using Bazier curve for drawing
As WMF and EMF is using integers and previous EMR_ROUNDRECT implementation
used many small lines to display curves, it produces low quality curves.
With this implementation using Bezier curves,
EMR_ROUNDRECT images are scalable without any loss of quality.
Change-Id: I3ef7f15ed9e3835065030bdf196b9bfa044d84a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189016
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
(cherry picked from commit 05fd7ddeb2f7d506b6c94dfcdef12b9bdbf9e4e5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189090
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-08 Bartosz Kosiorek <gang65@poczta.onet.pl> [6f1769122be69e31ce8a67c91a1d90430150fe47]
tdf#167616 EMF Add support for EMR_ANGLEARC record
Change-Id: Ic872f80b2a318ac7c0f3b0cbdb4ad285795989c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188865
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
(cherry picked from commit 1b68f859034ecc2342a772685d6563fa1ad71f7f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189091
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-08 Xisco Fauli <xiscofauli@libreoffice.org> [1a8ac560d1227ff4531172b998cbda8f1a8bbfa1]
tdf#167859: check xChartType
before
commit f355ddcbf2bf037263e336724829b5467b94ef40
Author: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Date: Sun Apr 13 11:36:05 2025 +0900
chart2: fold isSupported* functions into ChartType
ChartTypeHelper::isSupportingAxisPositioning,
ChartTypeHelper::isSupportingBaseValue and
ChartTypeHelper::isSupportingBaseValue
checked if xChartType was not nullptr inside them
TODO: add UItest for it.
Change-Id: I908d41ccc88208ab57576bd6369590556aafcce5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189172
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2025-08-08 Xisco Fauli <xiscofauli@libreoffice.org> [eaddb0695a687fc6638337eeb82da73543d7ca0a]
tdf#167075: init doc shell before pasting as png/bmp
Regression after
commit d8ab8992bd35aedfc1d2b0debebab0d623aa8d09
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date: Mon May 26 11:06:06 2025 +0200
ScViewData: pass ScDocShell by ref
and
commit 52e3b2b040ac54c2a5661e3676b135170f028f50
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date: Mon May 26 16:06:12 2025 +0200
ScViewData: simplify constructors
Change-Id: I0b70bd4efe6cd18ca3c7a13e92469e09b4ed7914
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189189
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-08-08 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [f49de37d779d983b0c148e9f23d43466f940f23e]
update credits
Change-Id: I94a8fbf4ac62d9e308b07b1e091059ff412ba80a
(cherry picked from commit 2950c046b3bc737f28b638fb25f9101c9117f1cd)
2025-08-08 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [297482ca3831eeef8cab403f8b7bb1d57dd5e1d1]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to ce3849d1421f3f0b1141a8d997691d5248406c61
- update translations for 25.8.0 rc3
and force-fix errors using pocheck
Change-Id: I53dbfd1c352d3e265c9b632396ba4aaf1b4531d1
2025-08-08 Xisco Fauli <xiscofauli@libreoffice.org> [c1636be457d79a0c962ad096d297d800e642ab32]
tdf#167466: drop background tab from Writer/Web options tree
it started to crash after
commit ca6b1677cc3d923f0c13b2253b48a0ea90485b41
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date: Tue Jun 3 11:59:57 2025 +0200
sw: no need to create a dummy attr pool
because that target pool is nullptr in SfxItemPool::GetUserOrPoolDefaultItem
now.
After some testing, there are some reasons why I believe it should be
dropped:
* Although it's an Writer/Web option it only works on Web ( File - New -
HTML document )
* Even if set in a web document, it won't be exported to html. To do so,
it has to be set in the Page Style dialog
* The document background can be changed from the Apperance tab so
basically this tab is duplicated now
This issue would have be caught if tdf#49895 had a test.
I will write a UItest in a follow-up commit
Change-Id: I3087a6942b9e5406de936fdde47d4c9143be55e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187754
Tested-by: Jenkins
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
(cherry picked from commit 08cb3671487b9e28a0bae3b133260e144d7e1160)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187769
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-08-08 Xisco Fauli <xiscofauli@libreoffice.org> [64adff6911db606f564f9df30fa8efe1f793e7c8]
Update git submodules
* Update dictionaries from branch 'libreoffice-25-8'
to 13b1eae6978ceb13b2e21183b91297671c928b03
- Upgrade Mongolian dictionary to 2025.08.02
Downloaded from https://github.com/bataak/dict-mn/archive/refs/tags/2025.08.02.zip
Change-Id: I0212ae403c048bcbc37c78e336275234152f2de3
Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/189106
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit ea41884e9efeb6668c7d17462f6fa3dcb07f9def)
Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/189107
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-08-07 Michael Stahl <michael.stahl@collabora.com> [00b2dd5faeb43ff50c84139a31892956a6a142d7]
libxslt: add patch for CVE-2025-7424
See https://gitlab.gnome.org/GNOME/libxslt/-/issues/139
Change-Id: I68f01dcb6b540ddf3d2e74927ec21c0ca4fc865f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189105
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 0f59405c5b255e80707a550129045c3dadd3c46f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189125
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Michael Stahl <michael.stahl@collabora.com> [5b2f54ac15685a964d125e3eb550822d30a27bdc]
libxml2: add upstream patch for CVE-2025-7425
Change-Id: I84110fc1ed54eac4a0ce4d8b8070a031c761fb39
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189104
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 88e2be781bc22f8500f57c84cec572ead8af32c4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189122
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Eike Rathke <erack@redhat.com> [6600793f1e5a82a95c967951958ef6b78b16c24f]
Resolves: tdf#167794 Rename secondary English function EFFECTIVE -> EFFECT
... to match en-US and ODFF. An oversight of tdf#100641 work.
Change-Id: Ie97dd723bc465d141a9e00b461b0e9dc8022c036
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189059
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
(cherry picked from commit 2f03e115d156ed122d9e92d6c7f722a8599edf01)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189128
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Regina Henschel <rb.henschel@t-online.de> [4c85f87fb528ace3db87bd79977d7397bc91e6eb]
tdf#167582 consider orientation of external lookup source
This is a follow up to my 5c0961129820fbc9dc8ec12c8a43a352ef1856a3.
Changing bVertical to (nResRow2 - nResRow1) > 0 has introduced a
regression with LOOKUP with external references. They need the same
change, thus I remove the restriction to inline array.
LOOKUP with external references had wrong results for mixed orientation
of lookup vector and result vector same as inline arrays. Only that
mixed orientations are unusually for external references and thus the
error was not detected before.
Change-Id: I2fc6d58b7fc84ae81f39b76534dc4ca99bdd6f56
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188304
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189102
2025-08-07 Kurt Nordback <kurt.nordback@collabora.com> [77ad59130533d459572af9434bad4c36a7ee049d]
tdf#167368 - Chart style index is not exported to OOXML
Add support for style index export, and a CI test for this.
Change-Id: Idb109ef705a6bf8338e18040d447c2806c0781ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187425
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 4313451fc77f641dc63a8b32edb03c6aa2636ae9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187767
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Markus Mohrhard <markus.mohrhard@googlemail.com> [d70c3f5b92134073c21e940bce3feb3e7b5efef5]
OOXML handling of 1904 null date for charts with internal data provider
Change-Id: Id7b70bd8d0f471fc56ffb3c8ce43a01a871491bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187835
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188702
2025-08-07 Markus Mohrhard <markus.mohrhard@googlemail.com> [f3c432ec2304f46d58ee0dcb1a23fb20d5d8ef14]
tdf#151505: fix autofilter import in XLSB
Change-Id: I880ba2f8ea384e092cd90d8b4fe2ad0356f6c1d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187979
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188699
2025-08-07 Michael Stahl <michael.stahl@collabora.com> [ee3d6b675620f32d01cbe3934e337cfc26a5519d]
tdf#167710 writerfilter: RTF import: ignore text in \revtbl
Only text in groups in \revtbl is relevant. Same goes for \stylesheet.
(regression from commit 82e17dbb2a16c7653a163139f0eea51faa4d46b8)
Change-Id: I70a97f7815e1f83b10be7cf12ee5abcd6b662a92
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188705
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit b45ba94bf2d927d0306cdd0e885017735ae4b21e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188767
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Markus Mohrhard <markus.mohrhard@googlemail.com> [b3715bd480b44dfedb48b5f3a6ce6a5e2f3d431e]
tdf#164014: export value filters through the value property to ODS
Change-Id: Ia6f8a2d65d1f90488ae1c8d2ca5bb48fc772464d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188061
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 02431246070d3468a0360b212f96a4ea75cac52c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188701
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Markus Mohrhard <markus.mohrhard@googlemail.com> [9d80c4ee2a9b368236107375511b1880692ef5f2]
tdf#122336: handle OOXML files with invalid cell refs better
Change-Id: Ib1e95ea0254f04852eb4c1ac4f95a587a68a9b10
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188059
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 2c171226eeac51c6082734dc854e9c045a963f04)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188696
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Markus Mohrhard <markus.mohrhard@googlemail.com> [d32d90ac556ce75e30e7ecf2d6b6eccbbf4de244]
properly display autofilter buttons for XLSB on filtered columns
The XLSB property has the inverted logic compared to the XLSX property
XLSB: fNoBtn: 0 means "The AutoFilter button for this column will NOT
appear in the next column (1) after this one"
XLSX: showButton: Flag indicating whether an application intended for
editing documents should show filtering interface
elements on this cell
Change-Id: I440149e28cf31cd16b834cdcc9eb05be4af45fbe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187978
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188697
2025-08-07 Miklos Vajna <vmiklos@collabora.com> [b00d8e4cf6e903a3dcd29133e79a3091dfaead29]
tdf#167194 sw redline reinstate: fix handling of self-inserts
Create an insert in a document, then Edit -> Track changes -> Reinstate,
you get an empty document instead of an "insert-then-delete" as
expected.
This happens because
sw::DocumentRedlineManager::PreAppendDeleteRedline() has a call to
IsOwnRedline(), which compresses the insert and the delete, which is
wanted in general for self-inserts, but not while reinstating.
Fix the problem by disabling redline compression in
SwEditShell::ReinstatePaM() for the insert case.
This requires extending
sw::DocumentContentOperationsManager::DeleteAndJoinWithRedlineImpl()
which probably just wants to turn on redline recording, but dropped
RedlineFlags::DontCombineRedlines while doing so.
Change-Id: I629d4d65dc966af934c7ecc672925d0fc11a3ef9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188768
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit e545ada3501780ee6552bbfa19954794e0440d46)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189078
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Miklos Vajna <vmiklos@collabora.com> [fb6334d69e3760b7e468ed22deee5eeb515002ab]
Related: tdf#167222 sw floattable: fix split of fly and heading text fit check
Open the bugdoc, the only floating table is at the top of page 4 in the
document, while it's at the bottom of page 3 in Word.
This time the layout decides in SwContentFrame::WouldFit_() that the
floating table and its anchor text can't fit page 3 and instead of
trying to split, it moves both to page 4.
Fix the problem similar to what happens already in
SwContentFrame::MakeAll() and SwTextFrameBreak, by ignoring "don't
break" / "keep with next" when that would potentially result in not
allowing a page break between the floating table and its anchor text.
Also extract this "ignore value for split fly anchors" logic to a new
SwContentFrame::IgnoringSplitFlyAnchor() to avoid duplication.
Change-Id: Ic31f0e34c75d978b4d8b6cbe2451ee7e15ef2f4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188604
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188695
2025-08-07 Miklos Vajna <vmiklos@collabora.com> [50f86a8ead1186f6faa162b7a175b0bf3b42eb29]
Related: tdf#167222 sw floattable: fix split of fly and its heading text w/ ftn
Open the updated bugdoc, which now has a footnote as well: the table
goes to page 2 in Word, but to page 3 in Writer.
This time what seems to happen is that the footnote container results in
less body frame space, so the entire floating table + anchor text moves
to page 3 and never moves back, even after the footnote moved to page 3.
Fix this by extending SwContentFrame::MakeAll() to be consistent with
the SwTextFrameBreak ctor, so it also ignores "don't break" / "keep with
next" when that would potentially result in not allowing a page break
between the floating table and its anchor text.
Change-Id: I3161fb6896909b32996fe83acd8d6772f7b66af6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188469
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188694
2025-08-07 Miklos Vajna <vmiklos@collabora.com> [36a9c3dfc80e0f30ef17684cb2427daa286daf90]
Related: tdf#167222 sw floattable: fix split of fly and its 'keep' anchor text
Open the bugdoc, the floating table is at the bottom of page 2 in Word,
but it's at the top of page 3 in Writer.
This is similar to commit b8009818d619bff16d19a0f589a733f78a46ec0b
(tdf#167222 sw floattable: allow split of fly and its keep-together
anchor text, 2025-07-14), but here an SwTextFrameBreak instance is
created, IsBreakNow() is invoked multiple times: so by the time the
first IsBreakNow() runs, m_bKeep is false, but later it gets turned on.
Fix the problem by adapting SwTextFrameBreak::IsBreakNow() to be
consistent with its ctor, which already turns off m_bKeep for split fly
anchors. This makes sense, because otherwise it can happen that first
IsBreakNow() is invoked with a text frame where the format is in
progress and we're not yet ready to split, but later we could split, but
we don't even try due to the changed m_bKeep flag.
Change-Id: I5d122e60c7693614e6e4c1b90e83f622be18fb72
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187989
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188693
2025-08-07 Miklos Vajna <vmiklos@collabora.com> [67f14318f5c8f8219fb6f7d1f9c3debe45fe2834]
tdf#166319 sw interdependent redlines: fix redo of reject of del-then-fmt's fmt
The bugdoc has <del>AA<format>BB</format>CC</del>, go to the middle of
BB, reject, undo, redo: there is no format redline in the document, but
there should be one.
This is similar to commit 0a33618f791995a6a67aad14cd7b65976ffd8eda
(tdf#166319 sw interdependent redlines: fix redo of accept of
ins-then-fmt's fmt, 2025-07-07), but there the context was accept of
insert and here it's reject of delete.
The undo action already knows how to only reject the underlying redline,
so fix the problem in sw::DocumentRedlineManager::RejectRedlineRange()
by correctly recording the UI action with depth = 1, which gives us
working redo.
The exec of the undo action's redo calls
sw::DocumentRedlineManager::AcceptRedline(), which now calls the same
lcl_DeleteInnerRedline() as the original UI action, so this looks
consistent now.
Change-Id: Id8983eff342e228ad3bfe2f8de0557c9d74b2a69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188654
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 1ba53f5ebbd57b7baf72240784d18954688a09b9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188719
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Jonathan Clark <jonathan@libreoffice.org> [b5228a1880cdb4774deb2156e72890711a02b4bc]
tdf#167740 vcl: Fix Win IME inserting stale composition after dismissal
Related to tdf#155158: Previously, the Microsoft Pinyin IME failed to
send WM_IME_ENDCOMPOSITION when dismissed during composition. As a
result of this, LO became stuck in an IME input state (resulting in, for
example, an invisible cursor). The fix for this bug was to treat
dismissing the IME in this state as also ending composition.
Unfortunately, in the case of the Windows 10 Microsoft Korean IME, this
bug fix caused the last character to be repeated due to stale
composition state. This change updates the previous fix to also clear
this data prior to ending composition.
Change-Id: I5b2906c54af495e238a8335cc9c21cb42f6f3beb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188754
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
(cherry picked from commit af0da68b4176aaf6d2f6faed66446e5638f41c80)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189045
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Caolán McNamara <caolan.mcnamara@collabora.com> [d5e73fee5fecceaf711cb2f74eb1ff7a26f2be29]
cid#1660814 Dereference null return value
Change-Id: I78d031b29feb278b2a5f2e0fdb5bb43bd8664831
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188715
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 3e0e4d141bc0bb1f9ca5cd7766cd64c7ae16d4f5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189051
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Caolán McNamara <caolan.mcnamara@collabora.com> [735ed9cc93b9fdcf85baa43f1d856a9ec469b941]
cid#1660401 Explicit null dereferenced
Change-Id: I61ffc09df3569119597a97e1eb96dc5096410396
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188858
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit f0ae436a49560dd78686aa4723a8751f083e942b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189049
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Caolán McNamara <caolan.mcnamara@collabora.com> [62df8eaee0d94dd347a10203499b714e6e1c658a]
cid#1660815 Dereference null return value
Change-Id: I47c9e02859f69df1f1849113fcb52a217eb26193
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188888
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit f1d7cedf2cd656bb19c68d0797b536c56f0e2683)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189047
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Caolán McNamara <caolan.mcnamara@collabora.com> [a51a775ea87010286e6624b06e9805bcca2bb95f]
cid#1660263 Explicit null dereferenced
Change-Id: Id6d36908f93783b8b742e59861452cef00a43dca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188895
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 916d3500d1e7cc1ee62da902552ee747493b0abd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189048
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Mike Kaganski <mike.kaganski@collabora.com> [fdaba4f87e74fa452b591e6ad43cf627f208c04a]
tdf#167599: check the result of UNO_QUERY
Not all objects implement XServiceInfo. Any query must either be
UNO_QUERY_THROW, or check its result after UNO_QUERY.
Change-Id: I8b1d7c719c4a43a4d658957ad5a91181dc265186
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188080
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 125053348935ab307978037abaa459acd509c4c7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188677
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Jonathan Clark <jonathan@libreoffice.org> [a8fe8c02a2d075e4ee4d316fb16126846418c168]
tdf#167541 sw: Fix hang laying out textboxes with empty script hints
Certain DOC files may contain zero-length sprmCIdctHint runs.
Previously, the EE implementation of style:script-type was not robust
against such zero-length spans and would loop infinitely upon
encountering one.
Change-Id: I7178a89b2688956482ceb790dd05523034019e2e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188020
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188685
2025-08-07 Miklos Vajna <vmiklos@collabora.com> [f40515eefd466a58d207750f13d713a169c18b23]
sw: fix crash in lcl_InnerCalcLayout()
Crashreport signature:
kit-32444-32444 2025-07-30 00:27:03.547433 +0000 [ kitbroker_7771 ] SIG Fatal signal received: SIGSEGV code: 1 for address: 0xa8
...
program/libswlo.so
lcl_InnerCalcLayout(SwFrame*, long, bool)
sw/source/core/inc/rootfrm.hxx:217
program/libswlo.so
lcl_RecalcRow(SwRowFrame&, long)
sw/source/core/layout/tabfrm.cxx:1923
program/libswlo.so
SwTabFrame::MakeAll(OutputDevice*) [clone .localalias]
sw/source/core/inc/flowfrm.hxx:170
program/libswlo.so
SwFrame::PrepareMake(OutputDevice*)
sw/source/core/inc/frmtool.hxx:476
and then gdb reports:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fa134d7e4c4 in SwRootFrame::GetCurrShell (this=<optimized out>) at sw/source/core/inc/rootfrm.hxx:217
217 SwViewShell *GetCurrShell() const { return mpCurrShell; }
(gdb) up
#1 lcl_InnerCalcLayout(SwFrame*, long, bool) () at sw/source/core/layout/tabfrm.cxx:1864
1864 vcl::RenderContext* pRenderContext = pFrame->getRootFrame()->GetCurrShell() ? pFrame->getRootFrame()->GetCurrShell()->GetOut() : nullptr;
(gdb) print pFrame
$2 = (SwFrame *) 0x0
Change-Id: I78a02ec062ad1c9645dbcb2fe82a5ae732d1f060
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188584
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 548adbdda062ce595b49939a617fcccf2cf212de)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188675
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Markus Mohrhard <markus.mohrhard@googlemail.com> [0a7db57656df704bfed869f743c8669b29d0eebd]
tdf#118668: handle wrong XLSX sheet visibility settings in line with Excel
Change-Id: I97b3b894a66c3108d67e0c8ef3b6b77aea11f365
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188060
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Jenkins
(cherry picked from commit 098a900142491477223e3340f29a15505efe99cc)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188700
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Miklos Vajna <vmiklos@collabora.com> [e157146d6f4fae68bab3fc0275722f79f6db1480]
oox: fix crash in the SlideFragmentHandler dtor
Crashreport signature:
> terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
> program/libmergedlo.so
> oox::ppt::SlideFragmentHandler::~SlideFragmentHandler() [clone .cold]
> oox/source/ppt/slidefragmenthandler.cxx:70
> program/libmergedlo.so
> oox::ppt::SlideFragmentHandler::~SlideFragmentHandler()
> include/cppuhelper/weak.hxx:91
> program/libmergedlo.so
> oox::ppt::PresentationFragmentHandler::importSlide(unsigned int, bool, bool)
> /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/shared_ptr_base.h:1070
> program/libmergedlo.so
> oox::ppt::PresentationFragmentHandler::finalizeImport()
> oox/source/ppt/presentationfragmenthandler.cxx:645
Aborting the entire PPTX import just because inserting some VML shapes
failed sounds like going too far.
Change-Id: Idfa1718185ac4716da5d5cbdb2bfe68f11badb9c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188036
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit adc6db837691d791c53ef1c4b05fcaaad79c158f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188692
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-08-07 Markus Mohrhard <markus.mohrhard@googlemail.com> [890b1e0b0cc14a40370a409927f9849fc2112b6a]
tdf#157689: don't use workbook DB range for importing autofilters
When there was just a global anonymous DB range the import using the
global DB range made sense. With the per-sheet anonymous DB ranges
we can avoid this indirection and should use the range specified
in the autofilter entry.
Change-Id: Icc4879257c1f93a0977f118a8f89b6c87a5f5b52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187977
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188698
2025-08-05 Xisco Fauli <xiscofauli@libreoffice.org> [79c9e89970bc3ff3db4125bcfe0f9de81caea069]
nss: upgrade to 3.114
Downloaded from https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_114_RTM/src/nss-3.114-with-nspr-4.37.tar.gz
Change-Id: Id3c3d002790d92ca8f17c676ce447dae8c26e16b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188688
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 6cda2dbfbf5d855e6194cd530a6f66099279bd90)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188735
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2025-08-05 Rene Engelhard <rene@rene-engelhard.de> [535fd79212f9ef03eafa5eb9e00b201d39adec1a]
implement --with-system-colamd (for internal lpsolve)
using suitesparse. Tested with both suitesparse 5.12.0 (Debian stable,
without pc) and 7.9.0 (Debian unstable, with .pc)
Change-Id: I6e0d014455ea2dec111aa3380bd49bd586dfad0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182444
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
(cherry picked from commit e4dc378991002cdc64909af581053d588cc92a0a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188939
2025-08-05 Rico Tzschichholz <ricotz@ubuntu.com> [61b66ebb4a46c75821997b4c9d8f102cf2625dcd]
sd: Fix no matching function for call on armhf
sd/qa/unit/tiledrendering/tiledrendering.cxx: In member function ‘void testSlideshowLayeredRendering::TestBody()’:
sd/qa/unit/tiledrendering/tiledrendering.cxx:3033:5: error: no matching function for call to ‘assertEquals(int, sal_Int32&, CppUnit::SourceLine, const char [1])’
3033 | CPPUNIT_ASSERT_EQUAL(2000, nViewWidth);
| ^
/usr/include/cppunit/TestAssert.h:161:6: note: candidate: ‘template<class T> void CppUnit::assertEquals(const T&, const T&, SourceLine, const std::string&)’
161 | void assertEquals( const T& expected,
| ^~~~~~~~~~~~
/usr/include/cppunit/TestAssert.h:161:6: note: template argument deduction/substitution failed:
sd/qa/unit/tiledrendering/tiledrendering.cxx:3033:5: note: deduced conflicting types for parameter ‘const T’ (‘int’ and ‘sal_Int32’ {aka ‘long int’})
3033 | CPPUNIT_ASSERT_EQUAL(2000, nViewWidth);
| ^
Change-Id: Ie6c0f59207a9e953b491f4a1ac8a8a201efcea76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188222
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2025-08-05 Xisco Fauli <xiscofauli@libreoffice.org> [2c731451c6fb4f72e5c5dcb56b928cd9722e04fb]
language-subtag-registry: upgrade to 2025-07-15
How the file was created:
mkdir data
cd data
wget
https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
cd ..
tar cvjf language-subtag-registry-2025-07-15.tar.bz2 data/language-subtag-registry
Change-Id: Id5edd75d4b8661734721dcae198a0b7692fa5aa2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188673
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 6619faf3ca445ae88639daa5762e36b3960dc000)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188731
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-08-04 Xisco Fauli <xiscofauli@libreoffice.org> [150bf27c032f615453df8d5da71d86fa767c30de]
harfbuzz: upgrade to 11.3.3
* 0001-const-up-modifier_combining_marks.patch has been fixed
upstream
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/11.3.3/harfbuzz-11.3.3.tar.xz
Change-Id: Iaeba7ca2988cfc3b150003a0bc4169ab8bde5627
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188691
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188745
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-08-04 Justin Luth <justin.luth@collabora.com> [c716de571f2f1abc7b27170729a2107a1f87e533]
tdf#167770 writerfilter: zero out margin if left/right aligned
Both shapes and graphics should be flush against the edge
of the page/paragraph when they are right or left aligned.
During layout, MS Word doesn't save space for "text wrapping"
on the side where there can be no text,
so this is best emulated by zeroing out what LO calls the "margin".
This has been partially done since 2006,
but now I'm trying to consistently cover all cases.
This longstanding bug became more prominent in 24.8
with commit eacf8dc7ab850f2d00bd4b327f830c55cf2a0d92
Author: Justin Luth on Tue Mar 5 19:22:34 2024 -0500
tdf#160049 dml import: use margins with left/right HoriOrientRelation
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164443
For now, just keep it simple to see the bugfix changes.
Later, this can be dedupped into a single function.
make CppunitTest_sw_ooxmlexport21 \
CPPUNIT_TEST_NAME=testTdf160049_anchorMargin2
make CppunitTest_sw_ooxmlimport CPPUNIT_TEST_NAME=testTdf96218
Change-Id: I62a2434212bd050922b74a0105ef30c8c4c3c393
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188786
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188864
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
2025-08-01 Justin Luth <justin.luth@collabora.com> [051e3f7490541e1a67111b7f8cf72fa5d2a1bb96]
tdf#166553 writerfilter: don't force para style when IsSplitPara
This patch fixes an old problem that now is more exposed
due to 25.8's commit a993c7849f0cc43c05ea8a505e38b44badc7539c
Of course when a new paragraph is started,
the paragraph style needs to be reset to the default one.
However, in the emulation case when we are forcefully splitting
a single paragraph into two,
then don't reset the current paragraph style.
make CppunitTest_sw_ooxmlexport22 \
CPPUNIT_TEST_NAME=testTdf166553_paraStyleAfterBreak
Change-Id: Iff6582d533cef2f1d815b3e7378e93880af9622b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188566
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
(cherry picked from commit eafbbc41049045a89cdb86710a37553aeb8eba7b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188618
2025-07-31 Andreas Heinisch <andreas.heinisch@yahoo.de> [c52d247f3ad764a67bfd115a3d1549e6e8c0e6b3]
tdf#143157 - Include expanded text in index fields
Include expanded text in the tooltip of index fields.
Change-Id: Ife87a4f09e3cc2511637bfbf5b2f44e6598bfbb3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187293
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
(cherry picked from commit c0c84b9c394f63f53f7ea55cbe7f6808b78e7f46)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187539
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-31 Deepanshu Sharma <129deepanshusharma@gmail.com> [6f6f0a388527a2e52c03bdacb71a14be5926a0c9]
tdf#166596 replace animated image in first launch dialog with static
one
Change-Id: Ifcd2f2046623000e50914d6a79f50615c0330e6e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188015
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit c5750839461a6bdffd363bbba8333122f709dfb5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188648
2025-07-31 Jonathan Clark <jonathan@libreoffice.org> [384d3b319185f352771fea049b67e7f9df96ac09]
tdf#167552 sw: Disable DOC handling of fDntBlnSbDbWid compat flag
This change partially reverts the following commit:
commit 6818bc55ff248c59f12b2e090139eff30fe949dd
tdf#88908 sw: Add BalanceSpacesAndIdeographicSpaces compat option
Specifically, this change disables the actual handling of the compat
flag for DOC files. It continues to work correctly for DOCX files.
We were parsing the compatibility flag correctly. However, there is some
undocumented and as-yet unknown mechanism Word uses to control whether
or not the fDntBlnSbDbWid value is effective for a particular document.
I looked at all of the likely Dop fields across the sample documents I
have available, but I couldn't see a pattern. Possibly this is based on
a version field located elsewhere, or maybe it's even based on the size
of the Dop structure itself.
After spending time trying to reverse engineer this, I'm growing
concerned that this hints at a general Copts masking mechanism built
into Word that we don't implement, rather than something that affects
this one compat flag in particular.
Change-Id: I021c636c0a9c72c5489960221f5ecec7823bf566
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188247
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 510cdadd6199c19406a021e1fb0cc29ce21b5e29)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188293
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-31 Michael Weghorn <m.weghorn@posteo.de> [d8745db2e830fc45288e412c0918b08dd1e22159]
cui: Don't use "p" prefix for non-pointers
Change-Id: I63be3cc6aa46b64f42c5e39a7cb7cebea2eba4a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186451
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit 8e6c53f057e48c0f5bf9c2ea14dd24e6cbd80209)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188649
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-07-29 Neil Fachin <neilfachin@gmail.com> [e12a65c151db69f93b8d26202d17ee3a9ddae063]
tdf#155419 tdf#156477 PDF Export: emitCatalog fixes for OpenAction
Modifies condition check in emitCatalog so that it does not add OpenAction
when using default initial page and magnification settings for pdf export.
Previous behavior always adds an OpenAction to pdfs on export which
can cause them to be flagged as potentially malicious.
Also changes behavior of FitWidth and FitVisible switch cases. Previously
they were using hardcoded values for A4 documents, causing them to
open to incorrect locations in pdf readers for other document sizes.
Now uses "null" which preserves current vertical position.
Change-Id: Id65841baf791be34be79647d2094dfb2c0bcdd60
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188219
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 54b6ed66901d9dc25e8f1636aca08fb9f3d8b5c6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188517
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-28 Justin Luth <justin.luth@collabora.com> [1326e09d019f05a82265f15c26288b4ffb7dc0c2]
tdf#167657 writerfilter: only move sectPr bottomMargin after pageBreak
This fixes a 24.2.4 regression from
my commit 5ff1fd13f1879105ecc0541c55f30cea32ae54f4.
The problem was that I treated all sectPr's as page breaks,
and that meant that the below spacing of the last paragraph
before a continuous section break was being unintentionally changed.
This is a bit tricky because at the time of the section break
we have no idea WHY the new break started.
Only MUCH LATER at the end of the entire section can we discover
whether it was a page break instead of a continuous (or column) break.
Thankfully someone has already calculated and stored
"the last paragraph before this section started".
A continuous section break's above and below spacing
should have no direct effect on layout, but it does affect
how much the next paragraph's top spacing collapses.
TODO: somehow the below spacing from a continuous section break
needs to reduce the top spacing from the following paragraph.
At this point I can't imagine how this could reliably happen.
make CppunitTest_sw_ooxmlexport25 \
CPPUNIT_TEST_NAME=testTdf167657_sectPr_bottomSpacing
Change-Id: Ifd908e2104f7e1efb86947dd88e7ea6874346d58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188298
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188299
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2025-07-24 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [cf39db5b97e665c47271a5679518a2fa9941be74]
bump product version to 25.8.1.0.0+
Change-Id: Idefcd55fd611372ce75bfc023d998bef48bec30a
2025-07-24 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [a9fcda96fdaf7d89956f0ddc2c4ff0f2a890ac7b]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to 281389aa91181ddd833d9743abd0a6b6b99d7e0b
- update translations for 25.8.0 rc2
and force-fix errors using pocheck
Change-Id: Iea8c894aa02eaf0208b0ce0a9ca1a47ccb96e84f
2025-07-24 Mike Kaganski <mike.kaganski@collabora.com> [1ea7043dc6f0c20d17e57a0cc70d7fc1a96cae18]
cool#12283: when diagram is selected, apply color to its wall
This is the same as in ChartColorWrapper::operator().
Change-Id: I1d80a35d9100a15e5eeda619fecb6f721f06ce13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187457
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 5e5ec014ab0b71250f0a2676d3947c596dd77716)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187472
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 16af48e4b8d2e945ffdac703903ff851da48cfb7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187498
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-07-24 Patrick Luby <guibmacdev@gmail.com> [b4e0e0c898fe3a3ec38b4a1ff06a33d65a31d141]
tdf#166994 Don't remove image from cache too quickly
While an animation is running, the same images are drawn in a
repeating cycle but each frame is removed from the cache before
it is drawn again.
Blending a bitmap with an alpha channel can be very slow so
it is much faster to keep all of the frames in the image cache.
So, allow the image cache to temporarily increase in size by
deferring removal of an image if it was cached within the last
few seconds.
Change-Id: I24d4b6a630671374227b60d6ee274443aee2332e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187790
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
(cherry picked from commit 45956f73bad4bb894f4e97c795700599ee281b54)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187817
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-07-24 Xisco Fauli <xiscofauli@libreoffice.org> [4c779b32023326828e5c96983b7b02eb3128a6bd]
libxml2: upgrade to 2.14.5
Downloaded from https://download.gnome.org/sources/libxml2/2.14/libxml2-2.14.5.tar.xz
Change-Id: I4e2e3f19479ae3c28801f0aa92adf918d633b6d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187923
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 79034b63b142b3f8bcc5d13ab4a16c0e9c42587a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187929
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-07-24 Caolán McNamara <caolan.mcnamara@collabora.com> [f2945942cd5f8e94e0b1edd4583cf39dc1dd6525]
null deref of SfxViewShell
#0 desktop::CallbackFlushHandler::enqueueUpdatedType (this=this@entry=0x34f1a860, type=3, viewShell=viewShell@entry=0x0, viewId=9) at libreoffice/desktop/source/lib/init.cxx:2474
#1 0x00007f1d866182a4 in desktop::CallbackFlushHandler::enqueueUpdatedTypes (this=0x34f1a860) at libreoffice/desktop/source/lib/init.cxx:2437
#2 0x00007f1d866184a0 in desktop::CallbackFlushHandler::invoke (this=0x34f1a860) at libreoffice/desktop/source/lib/init.cxx:2503
#3 0x00007f1d87648db0 in Link<void*, void>::Call (data=<optimized out>, this=0x30d537e8) at libreoffice/include/tools/link.hxx:111
#4 ImplHandleUserEvent (pSVEvent=0x30d537e0) at libreoffice/vcl/source/window/winproc.cxx:2285
#5 ImplWindowFrameProc (_pWindow=<optimized out>, nEvent=SalEvent::UserEvent, pEvent=0x30d537e0) at libreoffice/vcl/source/window/winproc.cxx:2849
#6 0x00007f1d87b3accc in SalFrame::CallCallback (pEvent=0x30d537e0, nEvent=SalEvent::UserEvent, this=0x38abd50) at libreoffice/vcl/inc/salframe.hxx:311
#7 SvpSalInstance::ProcessEvent (this=0xe87940, aEvent=...) at libreoffice/vcl/headless/svpinst.cxx:272
#8 0x00007f1d87937029 in operator() (__closure=<synthetic pointer>) at libreoffice/vcl/source/app/salusereventlist.cxx:119
#9 SalUserEventList::DispatchUserEvents (this=this@entry=0xe87968, bHandleAllCurrentEvents=bHandleAllCurrentEvents@entry=false) at libreoffice/vcl/source/app/salusereventlist.cxx:120
#10 0x00007f1d87b3b4d9 in SvpSalInstance::ImplYield (this=this@entry=0xe87940, bWait=bWait@entry=true, bHandleAllCurrentEvents=bHandleAllCurrentEvents@entry=false)
at libreoffice/vcl/headless/svpinst.cxx:425
Change-Id: Id6961b300ce67f5cfcbb91284a84bf02edc6aec3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187632
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 6034be914e4afdbdc330a6d1b43ff02cf966dacf)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187661
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit cc93fa1d10c86d7bad938dcdbb671b5a8bd78def)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187673
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-07-24 Balazs Varga <balazs.varga@collabora.com> [3a6c72a553d89e1b0f80858fd603916d66182212]
tdf#167468 - sc: fix XMATCH with mode=0 and searchdirection=-1
returns wrong value.
Off-by-one error during the calculation of the result with Reverse
search mode.
follow-up of XMatch implementation: c9245c153d349ee414fdd4f878fd10cbd8471cff
Co-authored-by: Regina Henschel <rb.henschel@t-online.de>
Change-Id: If77289d314f5960c19911c889f8d5b8eb0b839cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188019
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga@collabora.com>
(cherry picked from commit 649346506b8ec0670e35d30c5e04358e40244c36)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188241
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-24 Patrick Luby <guibmacdev@gmail.com> [4bbef581d68b391a4de57cc36c85775635f324d6]
tdf#167007 Add animated graphic to cache when prepared
For some reason, after an animation has been swapped out by
MemoryManager::loopAndReduceMemory(), the animation repeatedly
creates a new ImpGraphic instance, swaps it in, but it never
gets registered in the cache. Since it is not in the cache, new
ImpGraphic instances get deleted almost immediately after they
are created.
So prevent immediate deletion by ensuring that animated
ImpGraphic instances are registered when they are prepared.
Change-Id: Ib721e0bc31d3eddc4ed4131d9d8dc8919eed7b44
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187836
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
(cherry picked from commit eed9c590db8e94ddc5cc20bc25a779284c9b9249)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188234
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2025-07-22 Mike Kaganski <mike.kaganski@collabora.com> [59340251fa4c403c0659e0016ff1e606b829c669]
tdf#159775: restore filename from URL on redirection
Some github release URLs, like
https://github.com/hanya/MRI/releases/download/v1.3.5/MRI-1.3.5.oxt
get redirected to something like
https://release-assets.githubusercontent.com/github-production-release-asset/3265966/eff2c80e-138d-4b06-8139-e433f4672379?...
of which, 'eff2c80e-138d-4b06-8139-e433f4672379' is used as
ucbhelper::Content's title. That is used to construct local
filename in UpdateInstallDialog::Thread::download. Later in
PackageRegistryImpl::bindPackage, the extension of the file
will be used to detect the mediatype; if failed, operation
will abort.
Detect this situation, and restore the filename from URL.
Change-Id: Ib95189ff35e07fd01c95f87827c6f620ebfe2fe1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188114
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit b729b0bb677bd2b82492b45806ed3ddd91d2234f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188188
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-22 Xisco Fauli <xiscofauli@libreoffice.org> [9a858851b45b9e1bd4cb0b08142a9d8eeccf342d]
related tdf#163903: fix hexadecimal LCID
See https://gerrit.libreoffice.org/c/core/+/176735
Change-Id: I09ca39b5358f469bb97b76ce04e79944095ad176
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187862
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
(cherry picked from commit 51221018ea8c77d37bfb50ab59494f751f018483)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187871
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-20 Martin Srebotnjak <miles@filmsi.net> [5136f42ad575a11f5955bd8289bbc10425944b33]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to d72efbafbe988e13946b5b1d64c6e31e26e858a6
- Updated Slovenian translation
Change-Id: Ibaea1093eb9f79c0ce16634cc2c09ded516bb044
2025-07-19 Michael Weghorn <m.weghorn@posteo.de> [e2272d311c8a7f2ac6eb8df3e222dec12d83b248]
a11y: Set mnemonic widgets in print dialog
This ensures that the corresponding a11y relation
is set and e.g. the Orca screen reader announces
the associated label when the "Number of copies"
spin button or the "Include" combobox (for even/odd pages)
receive focus.
Change-Id: Id2399c87cf934d16addabd34ebf503baaf21121f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188039
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
(cherry picked from commit b59d61f9091116b0a63232f264e52f601cf279fb)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188048
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-18 Hossein <hossein@libreoffice.org> [c6350e9d8ef5eae111bd5d841ca7110d59e975a3]
tdf#80662 Fix display of JDK version number / path
Previously, JDK version number and path were displayed as RTL in right
to left mode of LibreOffice, in "Tools > Options > Advanced". The RTL UI
can be activated by setting:
SAL_RTL_ENABLED=1
The fix uses an LRM and PDF Unicode characters around the text:
https://en.wikipedia.org/wiki/Bidirectional_text
This patch also fixes the display of JDK path, which had the same issue
that was visible in the bug doc.
Change-Id: I80b25821defd43355e5b271d0348dd70ef520440
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187813
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
(cherry picked from commit 1a2523aa52c8237f784b4fe2d4689cbf7a02aed2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187880
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-17 Justin Luth <justin.luth@collabora.com> [952412154a4872d0f06a60c44506278924bb9c62]
tdf#153684 spellcheck: ignore non-case character when !IsSpellUpperCase
This fixes a 7.5 regression from
commit ab0adac692b67fe7b63dee665607400c6a7e6c01
Fix everything using XCharacterClassification::getStringType()...
Prior to erack's commit, all of the character-type-flags were grouped
together. So it could be a mix of UPPER, LOWER, and TITLE_CASE.
IsUpper returned true if there was at least one UPPER and no LOWER.
return (nFlags & KCharacterType::UPPER)
&& !(nFlags & KCharacterType::LOWER);
Since it was a group of flags, any characters that were non-case
(like a fullstop) did not affect the result of IsUpper.
But when it was changed in 7.5 to
return aCC.isUpper( rText, nPos, nLen );
now every character needed to be considered to be upper-case,
even if it was a non-case character.
So this patch changes the logic back to the original state
(more or less).
The fly in the ointment are any Unicode characters
that would be considered to be TITLE_CASE.
Previously they were ignored (i.e. they didn't affect the outcome),
but now I consider them to be non-uppercase.
That seems to me to be the intent here anyway,
so probably this implementation "fixes a bug"
when a word consisted of a mixture of UPPER and TITLE_CASE chars.
Change-Id: I7cf1d68bc3eb0a1a468da9e67ab54d1148f097aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187934
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
(cherry picked from commit 53a9cee01759ce54c4ee50468958531a360640f9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187936
Reviewed-by: Eike Rathke <erack@redhat.com>
2025-07-16 Xisco Fauli <xiscofauli@libreoffice.org> [d9236672b8d2928692c1948c99a8e6372dc9b2c2]
tdf#167431: Add bitcoin currency
Based on https://bugs.documentfoundation.org/show_bug.cgi?id=167431#c2
Change-Id: Id90ad54651b6ee9be2462ec6884c93315695e8ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187865
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2025-07-16 Armin Le Grand (collabora) <Armin.LeGrand@collabora.com> [e09e660c74d5905dff5700c1017e481b608c3800]
tdf#166734 CairoSDPR: use sub-pixel correct transformation
When parts of the output need to be pre-rendered (e.g.
transparencies) the temp target is of course pixel-aligned,
bit the mapping for the rendering was not yet. Added that
now. This could lead to sub-pixel displacements which are
usually not recognizable, but also like here make the
PixelSnap fail.
Change-Id: I877987947bdcc7521580de9287894ca70b17763c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187928
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
(cherry picked from commit 15a5d633fec3c3c62870ab4168a1886796350031)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187958
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-07-15 Regina Henschel <rb.henschel@t-online.de> [054b38fd2eecc3279f117d34bd976f5dfc1a3883]
tdf#167450 adapt sheet index in anchor to new pos
When a sheet is copied to another document, the tab index might change.
The tab index was not adapted in the anchor info in the shape, that are
maStart and maEnd in m_pPlusData in SdrObject. That resulted in a wrong
shape position after save and reload.
Change-Id: If69dcc9067e1346e1e115adf3c5ca68a9423e250
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187802
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
(cherry picked from commit 704dd0d279af6c1ace1bde61fec93e7c3a8d1035)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187924
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-15 Miklos Vajna <vmiklos@collabora.com> [c80832085d6606a082c7052d07262d95d20cb0db]
tdf#166319 sw interdependent redlines: handle deleting a self ins-then-fmt
The bugdoc has <ins>A<format>B</format>C</ins>, go to the end, delete C,
result is <ins>A<format>B</format></ins> given that this was a
self-insert, but the next delete results in <ins>A</ins><del>B</del>.
The problem is that we have special code to deal with delete on
self-insert (it's fine to just remove such content from the model), but
this code won't handle insert-then-format as insert, while Word does.
Fix the problem by extending
DocumentRedlineManager::PreAppendDeleteRedline() to look "through" just
format redlines to see the underlying insert.
Note that the same is not needed for delete-then-format, since insert is
always inserted next to an existing content or redlined content, so
there is no overlap.
Change-Id: I8b47839ffaa470714a5dd37722aa26ac0002c0bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187907
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit f66d63da05dbe2f254ffaf428257684a38523f66)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187921
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-15 prrvchr <prrvchr@gmail.com> [f1f1445bb25d48289e77ec5e06da9a57502fa119]
tdf#167495 Base need to close ResultSet after using it.
I checked that this is where I saw Base open DatabaseMetData.getColumnVersion() as many times as there are columns in the ResultSet and never close them.
Change-Id: I4aa371dc08826d864718285588a685a799eca607
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187901
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 8fcd59e87065a44918714e5a26d99d303516b247)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187906
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-15 Jean-Pierre Ledure <jp@ledure.be> [69087b1c05a005f49f714cdc7be7df89e37458d9]
ScriptForge (Form) Fix missing attributes
When a FormControl instance is created
triggered by an event with
fc = CreateScriptService("FormEvent", event)
a number of attributes are not
(re)-initialized in the parent Form instance.
They concern references to the form document
container and to the database connection.
The absences prevent from scripting easily
(workarounds exist) operations on the form
document (close, print, ...) or towards the
database (read, sql, ...). In particular,
this limits the reusability of scripts
across >1 form documents.
This is a bug. It is fixed with the actual change.
Documentation may be left unchanged.
Basic and Python scripts are impacted alike.
Change-Id: I285148917174d5a046c11b15ea2a2581a23d4277
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187854
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
(cherry picked from commit c2a5e575e5b1a317e30365d63f8b396d770e5d57)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187892
2025-07-15 Markus Mohrhard <markus.mohrhard@googlemail.com> [37bee016829f47537555f424c955a1461f8563a1]
tdf#148117: always export date chart axis with 1900 null date
We currently don't support the import of the 1904 setting correctly and
internally always use the 1900 reference. We should fix the import as
well and then use the correct export.
Change-Id: Idd69cf086d1dee14b92cebeeb1c51ece158a2955
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187834
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187897
2025-07-15 Miklos Vajna <vmiklos@collabora.com> [7e97e094739901647c4ff59bccfb86bc8bc70d90]
tdf#167222 sw floattable: allow split of fly and its keep-together anchor text
Regression from commit 3eb6d764b3023500f2299d36bf1860bc8e67db9f (DOCX
import: floating table with negative top margin has to be a fly frame,
2022-01-21), open the bugdoc, notice that the floating table should be
at the end of page 1 but is at the start of page 2.
This happens because in general keep-together means no split should
happen for all anchored objects and lines of a text frame, but Word
allows floating tables to be split from the next regular paragraph in
the document.
Fix the problem by building on top of the work done in commit
2d0a4ef1d83b8de6cb133970c2c35ae706fb058e (sw floattable: fix negative
vertical offset handling on page boundary, 2023-06-20), which makes this
split to "floating table" and "anchor text" pieces possible, but that
didn't help here, since the anchor text node happened to be a heading,
with both a split property set to false and a keep-with-next property
set to true. Now we ignore both properties in case the paragraph is a
floating table anchor, which means that in SwTextFrame::FormatAdjust(),
rFrameBreak.IsBreakNow() can return true, resulting in a call to
SplitFrame(), as needed.
The behavior for other types of anchored objects is unchanged, those
don't go to a separate page in Word, either.
Change-Id: I48835f355fa5aeb09b1a92bd8cee7e06cd148240
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187858
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 77f0dc4347b8802c56121ca1c5ef59209970214a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187873
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-14 Jonathan Clark <jonathan@libreoffice.org> [9824f9feb562424ddb478dee32c76aa85db5e90e]
tdf#167297 sw: Add support for DOC/DOCX script type hinting
Extends the Writer script type hinting mechanism to natively support
DOC/DOCX script type hinting.
Implements the OOXML w:hint attribute, in both import and export.
Implements the DOC sprmCIdctHint property, in both import and export.
This change also removes the previously-implemented IdctHint emulation,
based on breaking the input text into smaller spans. Writer's script
type hinting mechanism is sufficient to replace this code.
Change-Id: I08f934358164dc5814bfac010d4fac9b3334f947
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187755
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187771
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Miklos Vajna <vmiklos@collabora.com> [d7212eeeb2ec8a2072a33063e81ee4b27af8f031]
tdf#167379 sw floattable: ignore dummy anchor nodes in DOCX export
Open the bugdoc in Writer, looks OK, save to DOCX, open in Word: an
unexpected paragraph appears between the two floating tables.
What happens is that the DOCX import inserts dummy anchor paragraphs
between floating tables, so we can maintain the invariant that each text
node has at most one floating table anchored to it (which simplifies
layout code), but then these dummy text nodes are not filtered out on
the export side.
Fix the problem by scanning the nodes array for such dummy nodes once at
the start of the exporter, omitting such dummy nodes from the export
result and write the affected floating tables when the next text node is
written in the output.
An alternative I considered is to leave
MSWordExportBase::OutputContentNode() unchanged and just make some of
the m_pSerializer calls conditional, so the dummy anchor node is missing
from the export result. The problem is that it needed ~12 conditions and
it would be easy to change the code in the future in a way that some
part of the dummy node markup would be still emitted. So instead skip
the entire text node and write the table with the next node.
Change-Id: Ic15342d431a5c1e3086dc2029df6455ad675e13e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187696
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit c9851022d102a2abfc16c033c0249f24573300e7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187768
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Mike Kaganski <mike.kaganski@collabora.com> [51d91b68ed1d6b3b5ba22913005cd1a9d3a635c1]
tdf#166181: partial revert of 223a51801f0b75ae5036a8bcecc6eb81d99b113e
A newly created follow row frame for a split row would be passed into
lcl_GetHeightOfRows with Y position of 0, while the next row frames
would have Y positions from their previous placement (below the last
row frame kept on the previous page). Thus we can't use a difference
between top ot first row and bottom of last row to get sum of heights.
Change-Id: Ia96cd3ec488a6c3e6fb768fb1346bc8d61696118
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187818
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 6a074bd78322d8a8ca3eddd5ea4d4edf8f796a80)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187856
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-14 Michael Weghorn <m.weghorn@posteo.de> [ab3601c6d521629a38e0173ffb224d93bba38ab0]
android: Update compile/targetSdkVersion to 35, disable edge-to-edge
Update compileSdk and targetSdkVersion to 35 (Android 15).
In a quick test, running the app seems fine in an API 36 (Android 16)
AVD configured to use 16 KB Page Size, for which support was added
in Android 15 [1].
Changing the targetSdkVersion to 35 implies that edge-to-edge
would now enabled by default [2]. That would result in the
app par overlapping with the system bar and interaction would
be broken. For now, avoid that by explicitly opting out of
edge-to-edge support by setting
android:windowOptOutEdgeToEdgeEnforcement for API versions >= 35
in the LibreOfficeTheme used by all activities by now.
Helpful article: [3]
That won't work for targetSdkVersion 36 any more (see [4]),
but at least helps to comply with the upcoming required
targetSdkVersion of 35 in Google Play and gives some time
to implement proper support for edge-to-edge
for Android 16+ devices before increasing the targetSdkVersion
further.
Android Viewer works as expected in a quick test
with an API 36 (Android 16) x86_64 AVD
and an API 24 (Android 7) x86 AVD (with an additional
local revert of commit 9d1e76f7da12353afc3d9479d3b2ecddbb2a71e6
to prevent a deadlock when opening documents that is unrelated
to this change here).
[1] https://developer.android.com/about/versions/15/behavior-changes-all
[2] https://developer.android.com/about/versions/15/behavior-changes-15#window-insets
[3] https://medium.com/androiddevelopers/insets-handling-tips-for-android-15s-edge-to-edge-enforcement-872774e8839b
[4] https://developer.android.com/about/versions/16/behavior-changes-16#edge-to-edge
Change-Id: Id6d33bfbb7ca49c65e3875efb87c3c575be5f5ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187627
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit 2b77994d455b8d066baf6b67c1820fbb736b538f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187694
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Michael Weghorn <m.weghorn@posteo.de> [2dc051b0f37503559b1bc5aa955bdf60032a8863]
android: Use same theme for SettingsActivity
Don't use another theme for the SettingsActivity
than for the rest of the app.
I don't see any big visual change when opening
the activity at least in an API 36 (Android 16)
AVD anyway (with an additional
local revert of commit 9d1e76f7da12353afc3d9479d3b2ecddbb2a71e6
to prevent a deadlock when opening documents that is unrelated
to this change here)
and this will simplify maintenance and
adding support for targetSdkVersion 35 where edge-to-edge
is enabled by default [1].
[1] https://developer.android.com/about/versions/15/behavior-changes-15#window-insets
Change-Id: I1e5dccfefe930d34a8b315df04a6f07f050a5b54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187626
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
(cherry picked from commit 42ee4ef3a33d22cfea24d0e1956677c2a4068c2f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187693
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Michael Weghorn <m.weghorn@posteo.de> [0c3c561ca002c35a0c6ff0bdc6e5d85e1657746d]
android: Consolidate custom themes
LibreOfficeTheme.Base isn't used by itself,
so no longer let LibreOfficeTheme derive from it,
but derive from Theme.AppCompat.DayNight.NoActionBar
directly.
LibreOfficeTheme.Toolbar is equivalent, so drop it
and switch all uses to LibreOfficeTheme instead.
Change-Id: I9ad5ccb00bac94a20c17715780050fd8d300fa15
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187625
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
(cherry picked from commit 7b42e56bf9dd1db0ed9175c3db928f1b0a48bcaf)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187692
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Michael Weghorn <m.weghorn@posteo.de> [d83c1ba936bd25e6386ffdb3141e09dc350c66a0]
android: Drop unused LibreOfficeTheme.NavigationView
Unused since
commit a23bd42e9b2f6401c710ac95afcc3aa8f360d65c
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Tue Apr 6 14:26:06 2021 +0200
android: Drop custom file abstraction + UI
Change-Id: I01da7a0f2c2a0f5b28262984048a0328de0e846b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187624
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit d93a9e5868d4c54fc17d8881e1c01eb048642c35)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187691
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Michael Weghorn <m.weghorn@posteo.de> [4a985fae2303ba0ed266b14deeba92954ed8df2b]
android lint: Drop redundant android:alignParent* attrs
Address those lint warnings which would otherwise
trigger build errors in a WIP branch updating
compileSdkVersion and targetSdkVersion to 36.
Regenerate android/source/lint-baseline.xml
Change-Id: I0c3cbd10f6f177636a4960dd93674dde7c04b470
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187576
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit 56cc3fe11f66304502e2ffdf4400f1c74a51d0e7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187690
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Michael Weghorn <m.weghorn@posteo.de> [08e9c4bcff4880836f3a4c2eaa0de7a6a5c0ad1e]
android lint: Drop redundant android:layout_margin{Left,Right} attrs
Address those lint warnings which would otherwise
trigger build errors in a WIP branch updating
compileSdkVersion and targetSdkVersion to 36.
Regenerate android/source/lint-baseline.xml
Change-Id: I2f75a04898d38bf6661ba50bcdbe13677065f695
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187575
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
(cherry picked from commit dccae06f4f48afdaf007d3c9f20d18e5873548ef)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187689
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Michael Weghorn <m.weghorn@posteo.de> [5410178db099a2dbd0ff094e1e26848a013b8ecc]
android lint: Always have Calc doc right of headers
Address these 2 lint warnings which would otherwise
trigger build errors in a WIP branch updating
compileSdkVersion and targetSdkVersion to 36.
<issue
id="RtlHardcoded"
message="Redundant attribute `layout_toRightOf`; already defining `layout_toEndOf` with `targetSdkVersion` 34"
errorLine1=" android:layout_toRightOf="@+id/calc_header_top_left""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="res/layout/activity_main.xml"
line="78"
column="21"/>
</issue>
<issue
id="RtlHardcoded"
message="Redundant attribute `layout_toRightOf`; already defining `layout_toEndOf` with `targetSdkVersion` 34"
errorLine1=" android:layout_toRightOf="@+id/calc_header_row""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="res/layout/activity_main.xml"
line="94"
column="21"/>
</issue>
Like the desktop version of LibreOffice, have the Calc doc
always to the right of the headers, regardless of whether
RTL or LTR is used, i.e. leave `android:layout_toRightOf` and
drop the `layout_toEndOf` attribute.
this triggers other lint warnings. Regenerate
android/source/lint-baseline.xml to not fail the build
on those.
Change-Id: I4b3c1076d62a757164a3ae1953fe0c73ddc444c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187574
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit bda2ac31eeea60ca3e8a5b6057ee554df562f6d5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187688
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Michael Weghorn <m.weghorn@posteo.de> [aab5432c05efb9cbfcbb5627ef46540f78bc37c5]
android: Port from deprecated ComponentActivity.onBackPressed (II)
Port LibreOfficeUIActivity from overriding the deprecated
androidx.ComponentActivity.onBackPressed method [1]
and register a androidx.activity.OnBackPressedCallback [2].
Overriding the deprecated API was already triggering a warning
and that was turned into a build/lint error in a WIP branch updating the
compileSdkVersion and targetSdkVersion to 36.
Interaction when using the back button (or gesture)
remains the same after enabling experimental editing option
and clicking the "+" button to display the options to create
new filesin a quick test (with an additional
local revert of commit 9d1e76f7da12353afc3d9479d3b2ecddbb2a71e6
to prevent a deadlock when opening documents that is unrelated
to this change here).
[1] https://developer.android.com/reference/androidx/activity/ComponentActivity#onBackPressed()
[2] https://developer.android.com/reference/androidx/activity/OnBackPressedCallback
Change-Id: Ie5e9f3be7321d40f43ebf584db367432afb70577
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187573
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit 354c70556b5656c586adf4c8cc0521687bd77e22)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187687
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Michael Weghorn <m.weghorn@posteo.de> [212de77c88d43ed373e35413deab714f453f64c2]
android: Port from deprecated ComponentActivity.onBackPressed (I)
Port LibreOfficeMainActivity from overriding the deprecated
androidx.ComponentActivity.onBackPressed method [1]
and register a androidx.activity.OnBackPressedCallback [2].
Overriding the deprecated API was already triggering warning
/home/michi/development/git/libreoffice-WORKTREE-android/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java:511: warning: [deprecation] onBackPressed() in ComponentActivity has been deprecated
public void onBackPressed() {
^
and that was turned into a build/lint error in a WIP branch updating the
compileSdkVersion and targetSdkVersion to 36:
/home/michi/development/git/libreoffice-WORKTREE-android/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java:511: Error: onBackPressed is no longer called for back gestures; migrate to AndroidX's backward compatible OnBackPressedDispatcher [GestureBackNavigation]
public void onBackPressed() {
~~~~~~~~~~~~~
Interaction when using the back button (or gesture)
remains as before in a quick test (with an additional
local revert of commit 9d1e76f7da12353afc3d9479d3b2ecddbb2a71e6
to prevent a deadlock when opening documents that is unrelated
to this change here).
[1] https://developer.android.com/reference/androidx/activity/ComponentActivity#onBackPressed()
[2] https://developer.android.com/reference/androidx/activity/OnBackPressedCallback
Change-Id: Id5bde62fede7e0550a86bd0ba9bd1535a84003dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187572
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit 9fa0ea06bc4f6be647ef4ac4d5bc1830bfc93ec4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187686
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Michael Weghorn <m.weghorn@posteo.de> [b7a54ec2f4c5dddef08d26e70ebbfba44ccb63ea]
android: Update androidx.constraintlayout:constraintlayout to 2.2.1
Change-Id: I810185a7004a7d66626654a30cb4123a1b67b875
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187571
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit 622b70aa5cf7d0e50d9c5280583b83a89841ebc7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187685
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Michael Weghorn <m.weghorn@posteo.de> [aefb889fdd683982f56af160f070dde0c9c131d4]
android: Update Android Gradle Plugin to 8.11.0
... and gradle to 8.13, as suggested by Android Studio.
Update the lint-baseline.xml file (by deleting it and running
a build to have it regenerated, commit result).
Change-Id: Ia7d4c5fde77e7b504066cef004003447b2780192
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187569
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
(cherry picked from commit 728248837dd31260f3eea8cda15892945b4700bd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187684
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-14 Mike Kaganski <mike.kaganski@collabora.com> [a9bf303dfb348265edf7c2c61fc3b8a6511fd5df]
tdf#165156: limit hack for tdf#161508 even more
Make oscillation detection only happen when !bSplitError, to not
interfere with handling of the latter.
Change-Id: I6c54e5026ba700522121f36a3e4fc5b91c37b2e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187801
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 8946628f0ce28d111c9dfcfbd73e30afac32c157)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187841
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-14 Markus Mohrhard <markus.mohrhard@googlemail.com> [be82073d8be8905d63ec79f8547c13d132f6274a]
tdf#136754: handle pptx chart backgrounds provided by the themes correctly
It seems that there is a small undocumented quirk in the OOXML spec
regarding pptx files. The first 32 themes are handled as if they would
be specifying a transparent background whereas the spec seems to agree
with the xlsx/docx handling of using a solid background based on the
theme colors.
This corresponds to table 3 in 21.2.3.46 ST_Style of the OOXML spec.
This commit also reverts the fix for tdf#60316.
Change-Id: I4187b5740898435941647056a5820fa47a2b3dba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187759
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 87350de8737ca91ba71b356ca9f33fea99e74591)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187843
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-14 Patrick Luby <guibmacdev@gmail.com> [fdd5dac96c0c7fa1050d5ec0bbb22e1078ef8556]
Fix NSEvent memory leak
DragSource instances retain an NSEvent but would never release it.
Also, NSEvent instances are essentially immutable since all of their
properties are read only. So just retain an existing NSEvent instead
of making a new copy.
Change-Id: I1a13cdc04f6b8a1bede6c831a04d6e8d152b8b29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187781
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
(cherry picked from commit e1a369bbfa2a56e902771aa66b15aa1832d40ec5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187785
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-13 Nagy Tibor <tibor.nagy@collabora.com> [a5c4cf44a46e5e7e7f0ccbbd17899e599dfcb837]
Revert "sw: add fallback for page styles using UIName identifiers"
This reverts commit 09804b8a8b6dd41e2e17ab25f5ce6b6d90b14633.
Reason for revert: The issue was on the extension side.
It used the UI name for the page style instead of the programmatic name.
Change-Id: If0ac25c6bc1fe9e246fa16cf1646c5f94a363e23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187679
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy@collabora.com>
2025-07-12 Xisco Fauli <xiscofauli@libreoffice.org> [79dc0ebf6a7dd2757dcb3efc01d57e860816828c]
tdf#167455: sw_odfimport: Add test
Change-Id: I4a9df517f66ccdf394444c86cd783c201eb2ccae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187699
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-12 Patrick Luby <guibmacdev@gmail.com> [3a1ff39d026530b3bc5f75052822fe9480034cb5]
tdf#159529 Use macOS font table memory directly instead of copying
Per Apple's documentation, the CFDataRef returned by the
CTFontCopyTable() function is "A retained reference to the
font table data as a CFDataRef object. The table data is not
actually copied; however, the data reference must be released."
So, instead of making a copy of the CFDataRef's data, just use
the CFDataRef's data pointer for the HarfBuzz blob and release
the CFDataRef in the blob's destroy function.
Change-Id: Ia670d036b20ca268b203eedcb1abbaad471d5384
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187761
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187766
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-12 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [56c768bb35d99d029c696d8ce17b5098a2ce7daa]
Revert "tdf#159529 clear hb_ot_face_t data after fetching 'sbix' and 'glyf' tables"
This reverts commit af47a78e11d4819bb4b1ae1a1277babd10d815b7.
Reason for revert: seems to cause regression/crash tdf#167455
after the update to harfbuzz 11.2
See also https://github.com/harfbuzz/harfbuzz/issues/5386 that confirms the crash to be related to the patch
Change-Id: I359f716afbc8d94fbdb25e600827ac3c41c2ae0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187698
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187765
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-12 Khaled Hosny <khaled@aliftype.com> [466e73897ec8d38dc46676eeadfce22e166f1d0b]
Don’t calculate text bounds needlessly in OutputDevice::GetTextArray()
Calculating text bounds can be a costly operation (e.g. for fonts with
CFF table since it has to be calculated from outlines), and leads to
loading potentially large font tables (which is especially an issue on
macOS where we copy font table data when loading, unlike other platforms
where HarfBuzz mmap’s the file). It seems that the text bounds are only
used in one place, so this change calculates the bounds only when
requested.
Change-Id: Ib9017a58dda30b4cc07ceec087cbf4ad45d56d00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187683
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187764
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-12 Michael Stahl <michael.stahl@collabora.com> [87c0461b99d441ce5436180c6f5b0f3111bfedc7]
tdf#166975 sw: fix DOCX export of list level format with repeated levels
MSWordExportBase::NumberingLevel() would only replace each level's
placeholder once in the format string; rework this so it iterates the
whole format string.
Change-Id: I7f375ac1f96f4fcbac51f7cba1cc67378f4edbb8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187580
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 58db687fd96fcbb6a6b2909142df2fa01427add9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187635
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit 55fbce80511a91d21fd8366f86786a0fb46b9357)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187681
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-12 Justin Luth <justin.luth@collabora.com> [23be40db1965b4ea40abef7b8a3f29680d0aa3c6]
tdf#167358 Revert "tdf#156707 xmloff import: always provide ControlBorder
... property #2"
This reverts my 25.2 commits d4dad2e181fd2dc30c3916fd59c05745023a51c8
and 5a617f77ee803eb65051e93f659ef66433879052.
Obviously this entire thing is just too broken
for a simple guy like me to fix.
It seems like each kind of control has its own definition
of what should happen if the border is not specified.
So much for ODF standardization of default style values...
This makes it virtually impossible to force a setting at import time,
and since styles (without specified fo:borders)
could theoretically be shared between the different control types,
it might also make it impossible to force an export as well?
make CppunitTest_xmloff_style
Change-Id: I0182878a16213ad2c7f06524fe85388aae86551f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187654
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
(cherry picked from commit 0ad0fc985cc4b1c8f05df1e64752ae045127c051)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187700
2025-07-11 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [1a006ca47bdf19a0d760c9522153cef0b905febe]
update credits
Change-Id: I709d0aa7b5aeaaf52510d268df40270c2ff6c1d8
(cherry picked from commit cc651063eb41f751d40022bdb79ec1e641893909)
2025-07-11 Xisco Fauli <xiscofauli@libreoffice.org> [6cdf407519e0c47b78073847943ad45289d631a6]
libwebp: upgrade to 1.6.0
Downloaded from https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.6.0.tar.gz
Change-Id: I77f3f8ca555f774f2c2b53ea41a8225f55be66f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187656
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2025-07-11 Xisco Fauli <xiscofauli@libreoffice.org> [6747b0d80a9ae13229130b2867c5b938ba23ef5a]
tdf#136753: Add Moldovan locale
According to https://www.localeplanet.com/icu/ro-MD/index.html
the short weekdays differ from ro-RO
Change-Id: Ie1b9632d2b621e57f8e1040bca4996e4c1ee46c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187629
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187676
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
- <@.>0868]
Based on https:// *.drw; *.pct; *.psp; *.xcf;
Also change "marţi"// *.m4a; *.m4b; *.mid; *.midi;
https://gerrit.libreoffice.org/c/core/+/187629/comment/06663c83_c0b8879b/
Change-Id: Ia98b981229166f6ac731829525f04308d142f270
:
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
<@org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187675
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-11*
tdf#166975 sw: fix expansion of list level format with repeated levels
SwNumRule::MakeNumString() would only replace each level's placeholder
once in the format string; rework this so it iterates the whole format
string.
Change-Id: I1d0c5bf5c60c3003cc0257acfb69b37d209be617
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186977
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit e200c729797e7f3c19e958f9796a1d0fbae829d1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187020
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit 1db81743594f7b858ff4d17c80a7366adee2b3fe)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187646
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-11 Kohei Yoshida <kohei.yoshida@collabora.com> [a67004f96ef4fd79be71c1d9f29341a60d49c8d3]
Upgrade mdds to 3.1.0
Change-Id: I449cc9a9654ddac143b33641ae955c393d404aa8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187605
Reviewed-by: Kohei Yoshida <kohei@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit e9632c5d3ab90a75d3615147e6ecec682f7bc15c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187671
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-11 Dr. David Alan Gilbert <dave@treblig.org> [5841c28ac114f2b664218fe2aa57bbd98fd3ec11]
sdext,pdfimport: Fix stroke clipping
The bounding clipping I added back in:
abfbca271976 ("tdf#85428: Clip strokes")
breaks 'thick' closed polygons, losing the closed flag.
That's fixed by changing the bStroke flag to the clipper
like done in svdpdf.cxx and svdfmtf.cxx
This fixes the rendering of the top right box in:
https://gitlab.freedesktop.org/poppler/poppler/-/issues/178
Change-Id: Ib2ef27bef9860420b231cceaa2b0568c443d7f2e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187435
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
(cherry picked from commit 2f2f56f47f7ce8f7cdd581a6831ac9c3d7ce3be4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187672
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-11 Miklos Vajna <vmiklos@collabora.com> [3d3d51cd630ab45a61790be27e930e98c3e749e6]
tdf#167379 sw floattable: make dummy paragraph from DOCX import less visible
Open the bugdoc, the text C and D appears to have the same vertical
position in Word, but D is shifted down in Writer.
What happens is that since commit
01ad8ec4bb5425446e95dbada81de435646824b4 (sw floattable: fix lost tables
around a floating table from DOCX, 2023-06-05), an empty paragraph is
inserted between two floating tables immediately following each other,
to have a suitable anchor point for all floating tables. But it wasn't
considered that the anchor point takes vertical space, which has an
impact on layout.
Fix the problem by keeping the empty paragraph in the model & layout
(the split fly frame needs those), but setting the paragraph properties
(spacing, line spacing) in a way that the created text frame has 0
height, so it has no negative impact on the position of the text after
the text frame.
This is similar to what the DOC import does in
WW8TabDesc::CreateSwTable(), though there we set the font size of the
paragraph to 1pt, which improves the layout but still has a small
impact. An alternative I considered is to set the "hidden" character
property on the text node's item set, but that would create no text
frame at all, so we would again have no anchor point for the floating
table, so that would not work.
Change-Id: Iceb2f51ad42028434822cb9c0701a7e6d6545845
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187619
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 441aed20b95ee40dec1df72fb8e8167d0e48c0c4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187645
2025-07-11 Jonathan Clark <jonathan@libreoffice.org> [34b35c4adb0176fc3b04f938f52485e531bd5a3a]
tdf#64991 Remove unnecessary special case from IdctHint hack
In order to emulate sprmCIdctHint support, the DOC importer uses a hack
which splits the input text at script type changes and overrides fonts
to make Writer's output match Word's.
One special case in this algorithm was to override treatment of
ASCII-range weak characters as Latin script. This special case had the
unfortunate side effect of causing serious performance problems with
non-Latin DOC files, as what would otherwise be treated as normal text
was split into an excessive number of spans at any ASCII-range weak
character (including space characters). This special case was also
unnecessary, as our default implementation already handles these
characters the same way Microsoft Word does.
This change deletes that special case. This should resolve the
performance issue, and shouldn't otherwise affect document layout.
Since this hack was added, Writer has gained support for its own version
of script type hinting. Currently, that implementation isn't perfectly
compatible with DOC/DOCX, but in the future we should be able to delete
this entire workaround and support sprmCIdctHint natively.
Change-Id: I25ffe38efc963b8d569e2911c64a70852e22c679
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187602
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
(cherry picked from commit 7ef1c437f30b0869a5b9fa33809bac2c6665ace3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187610
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-10 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [fc3baba5ee80226c0f11232dbf07ce507d4f63d1]
improve builddir!=srcdir detection with case-preserving filesystems
on Windows and macOS autogen.sh could misdetect the build directory as
being different from the source directory if the filesystem is
case-preserving but not case-sensitive. e.g.
cd ~/BuildDir ; ~/builddir/autogen.sh
It is the same directory, but treated as a different one and thus
autogen would create the module/Makefile files and also a link to the
include directory. That however then ends up being a include/include
link and that then fails the skia build.
So use the same method to get both paths to avoid the problem.
Change from cwd() to getcwd() since despite the documentation saying it
would be the same, getcwd is actually returning the actual name as
stored in the filesystem. Also use the module's chdir so that the PWD
environment variable doesn't need to be set manually.
Change-Id: I705dc584a91be9f63052bd1f72d4a0c4ba73f3ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187536
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Tested-by: Jenkins
(cherry picked from commit 037de86626d2860969860d61d63f35e804f19c85)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187560
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-10 Xisco Fauli <xiscofauli@libreoffice.org> [6fa6edff1f5191ce3ecb076f99b9320f8108cda8]
related tdf#166813: improve pocheck script
* Check the number of opening and closing parentheses,
brackets and square brackets are the same
* Check {&DialogHeading} and {&DialogDefaultBold} are
at the beginning of the string.
the translation here
* Check [ProductName] is kept. It's just a warning
so pocheck doesn't remove the translation here
Change-Id: Ica06e22ec547375b84ed829da12178b5976b357c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187554
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 297dc9b6c52a9a2451c3ac7484ae484b9590fcc3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187630
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2025-07-10 Dr. David Alan Gilbert <dave@treblig.org> [116b72befc7db5424398fe7ce666cc9f8e87884f]
sdext,pdfimport: Fix stroke opacity export
updateStrokeColor was reading the Fill opacity not the stroke opacity.
Fixes opacity of the top right box in:
https://gitlab.freedesktop.org/poppler/poppler/-/issues/178
Change-Id: Ie35d99a085df41b902185510b7801d58c409c532
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187410
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
(cherry picked from commit 744b0b4634171841df24ec7a8094f95e12058048)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187611
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-09 Xisco Fauli <xiscofauli@libreoffice.org> [17f99c0af73fbd497d7d258d83b4d40496a2a808]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to ecba6115bcd59dc8af4f0c3b29b6a986a5ca82d3
- update translations for master/25.8.0 rc2
and force-fix errors using pocheck
Change-Id: Ic56ae707dd61a28109f35d652e1f5e420a146941
(cherry picked from commit 6fcf507b1c9eee02d307f987dfb3eea02dee5bf1)
2025-07-09 Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> [a2efe54a1d813b852763479a351a1045bc5c9027]
tdf#167409 set alt. text to the internal hyperlinks in a TOC
The alt. text that is set is the TOC entry text.
Change-Id: I8a9012cd7a6155f0672e0e8019ec1183d01cdcb6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187556
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
(cherry picked from commit e2be650d97765945538614463b9269acb164947c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187598
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-09 Sahil Gautam <sahil.gautam.extern@allotropia.de> [8c2bb1d14d350afbca228204c3b8aa29bac071d5]
tdf#164970 Update .uno:ChangeTheme as per current themes implementation
Before the themes rework, the document appearance and the application
appearance were separately managed which is not the case now. Now themes
map to appearance modes as follows:
Custom theme -> AppearanceMode::AUTO
Automatic -> AppearanceMode::AUTO
Light -> AppearanceMode::LIGHT
Dark -> AppearanceMode::DARK
The current implementation toggles between Light and Dark themes except
for the case where the current theme is a custom theme.
Change-Id: I6062924a36c7848794a7588cee157333fc3e5e9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186233
Tested-by: Jenkins
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
(cherry picked from commit 9645c6d4e5cd0841d9d9e474ce5f27cec8fcda1c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187579
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-07-09 Balazs Varga <balazs.varga@collabora.com> [411820caff6cbf01aa0affc01c11eefed02b9f98]
tdf#167171 - fix MATCH function wrong result with inline arrays
Better to use the original algorithm for searching in inline arrays.
Regression from: f7039822c7ad3987326e1c20ea4a745c158f9682
Change-Id: I4a80b7abda96006c16b3fd316225e8e24ace8c09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187492
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga@collabora.com>
(cherry picked from commit aa4b18b720746038206152689ef31231d474b8a4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187563
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-09 Xisco Fauli <xiscofauli@libreoffice.org> [827b066d5d6f313585f62b2c06914c430ce5a787]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to f4f0ac39b1c0ddabc292c26b4edd6be37e7a0f9f
- update translations for master/25.8.0 rc2
and force-fix errors using pocheck
Change-Id: I6d1a6dbc01f4c69cb3924ef620581520e5a328c5
(cherry picked from commit 19544bd823de80857919822e0ee8535c46a946af)
2025-07-08 Xisco Fauli <xiscofauli@libreoffice.org> [256737875d23442cb14c34d5168779e525c5f5e3]
tdf#96151: Add Albanian locale
Most of the information has been extracted from
https://www.localeplanet.com/icu/sq-AL/index.html
Jona Azizaj also helped to translate some strings.
Thanks for that.
Finally, many thanks to Eike Rathke for his valuable
clues and reviews in gerrit on how to add a new locale
Change-Id: Ibf762e7983f9e4aaf81ad8965f31d69fae0fd7ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186666
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
(cherry picked from commit 4e93d5a13c79fd1d027538ba7ec70574262d966b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187548
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-08 Xisco Fauli <xiscofauli@libreoffice.org> [fcb8b7e6634bc8d4139798a5ff5bdadb2e2d1e05]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to 654d3a08a1ae75d77fd7db252b068c7526aab4be
- update translations for master/25.8.0 rc2
and force-fix errors using pocheck
Change-Id: Id5436a18b16c5ab44ec71a73a5e49d9acbb1a340
(cherry picked from commit c60899a361bfcf4a0eff6550bb685ace165527a8)
2025-07-08 Miklos Vajna <vmiklos@collabora.com> [5e1b3f3286d46421de83ec54a1f563ac82f1a76c]
tdf#167229 sw floattable: fix missing cell background with redlines
Open the DOCX file, the 3rd table should have a gray background in its
B2 cell, but its background is white.
It seems this happens because there are 2 floating tables before the
table and the first floating table has a redline. Commit
288db6eb47fbbd2b3ca34ffea0686d8ed8ed9be9 (tdf#132271 DOCX: import change
tracking in floating tables, 2020-09-07) added special handling of
redlines inside floating tables, and I moved that code around for
SwFormatFlySplit in c50bf5a5daaae3d40f89ea0784a75a8a571c208d (sw
floattable: remove no longer needed DOCX import heuristics, 2023-04-12).
The trouble is that once these pending redlines are processed, nobody
clears rFramedRedlines, so it gets processed also for a next floating
table, which pollutes the state of the importer, which leads to missing
cell properties for later tables.
Fix the problem by clearing the redline list in
DomainMapperTableHandler::endTable(), which restores the invariant that
once the redline list is processed, it's cleared -- that was there in
the old SectionPropertyMap::CloseSectionGroup() code before the
SwFormatFlySplit work.
An alternative I've considered is to just catch exceptions in
BeforeConvertToTextFrame() when getting the TextTable and Cell
properties, but that would still result in this unwanted behavior that a
floattable-with-redlines has an influance on the next floattable.
Change-Id: I9998a46d72a72172dffcf85bf96b3478d63c9269
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187535
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit f124b25380a8ae9f5bbae7ca04772124a6572926)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187538
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-07 Miklos Vajna <vmiklos@collabora.com> [f78afc8cb33d866f1e97dae6784ddb816ce8dad6]
tdf#166319 sw interdependent redlines: fix redo of accept of ins-then-fmt's fmt
The bugdoc has <ins>AA<format>BB</format>CC</ins>, go to middle of BB,
accept, undo, redo: there is no format redline in the document, but
there should be one.
What happens is that the "accept" action creates an SwUndoAcceptRedline
with the default depth = 0, but then it carefully calls
lcl_DeleteInnerRedline() in
sw::DocumentRedlineManager::AcceptRedlineRange() instead of a plain
accept.
The undo action already knows how to only accept the underlying redline,
so fix the problem in sw::DocumentRedlineManager::AcceptRedlineRange()
by correctly recording the UI action with depth = 1, which gives us both
working undo & redo.
The exec of the undo action's redo calls
sw::DocumentRedlineManager::AcceptRedline(), which now calls the same
lcl_DeleteInnerRedline() as the original UI action, so this looks
consistent now.
Change-Id: Ibb21c0745f3dd0aacec7cf7448c7c85245dbee69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187480
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
(cherry picked from commit d7bf3a17cb27da1a58163e9db657f0a8d8344901)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187493
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-07 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [0fe97911197dbf72928d1fb53ecfad36cc9d7741]
bump product version to 25.8.0.1.0+
Change-Id: I743bbcdfb445e9e47d1ab83413aaac3ed92b6f9a
2025-07-07 Xisco Fauli <xiscofauli@libreoffice.org> [4cab290de15aba542b64f26f2417d1d6a2920b11]
Update git submodules
* Update dictionaries from branch 'libreoffice-25-8'
to 91336549281133e6847f610101b6afe87d954652
- Upgrade Mongolian dictionary to 2025.07.04
https: //github.com/bataak/dict-mn/archive/refs/tags/2025.07.04.zip
Change-Id: I7446decb5b84639ef8505c69ba298afb8af4c450
Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/187484
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 537912c9b3b8f1e79a3fe8750777023218c3df2c)
Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/187485
2025-07-07 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [11f6e2093c94abf72f9795021a5f54c59418e991]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to bd755929b03232c097220de40114bbc068e99724
- update translations for master/25.8.0 rc1
and force-fix errors using pocheck
Change-Id: I99719103c932e057b1f1d5a4382c556a67038f8d
(cherry picked from commit c12263a6cf66b94845d40f3e3f960e34358cf11b)
2025-07-05 Xisco Fauli <xiscofauli@libreoffice.org> [3de369a68b3b49bbdf78d5773bdbe20c2e703b99]
poppler: upgrade to 25.07
Downloaded from https://poppler.freedesktop.org/poppler-25.07.0.tar.xz
Change-Id: Ia38e14845351ba5300613fd4ecd055bea45150e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187429
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 406bcd8066cd94dfb2e39454fe32543eafd01428)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187434
2025-07-04 Tibor Nagy <tibor.nagy.extern@allotropia.de> [09804b8a8b6dd41e2e17ab25f5ce6b6d90b14633]
sw: add fallback for page styles using UIName identifiers
Change-Id: I3cbbaaa54784f1b11a34c7711df12770885ffb8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187354
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy@collabora.com>
(cherry picked from commit edc6bd92c937aab0403c29e6f960da51cf5e75d2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187356
2025-07-04 Jonathan Clark <jonathan@libreoffice.org> [bb524f6e95c70021463a72de106bf4348f660acd]
tdf#166339 skia: Tune font gamma to improve contrast
Added platform-specific adjustments for font gamma curve and contrast.
For most platforms, the default values from BUILD.gn are used. For
Windows, the values are based on manual testing to subjectively recover
as much contrast as possible while still reducing subpixel antialiasing
artifacts to a reasonable level.
Change-Id: If6898ed6eff3766bbb0ce3032fe7bb1fea13128a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187416
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 3a14edb8b3fd295190291c1371b76399aef50303)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187427
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-04 Caolán McNamara <caolan.mcnamara@collabora.com> [e50e460a2eb590c33e1274f27bd0f4821166fa7c]
column width missing in signature treeview column list
which causes some problems.
reproduce on desktop with:
SAL_USE_VCLPLUGIN=gen ./instdir/program/soffice xmlsecurity/qa/unit/signing/data/signatureline.odt
and the column with heading "Signature type" appears blank unless you
select the seperator between it and Description and move it, at which
point "XAdES" appears
while in lokit there is a out-of-bound crash:
#8 0x00007f830d436902 in abort () from target:/lib64/libc.so.6
#9 0x00007f830d6a84e9 in __gnu_debug::_Error_formatter::_M_error() const [clone .cold] () from target:/lib64/libstdc++.so.6
#10 0x00007f830518aa13 in std::__debug::vector<std::unique_ptr<SvLBoxTab, std::default_delete<SvLBoxTab> >, std::allocator<std::unique_ptr<SvLBoxTab, std::default_delete<SvLBoxTab> > > >::operator[] (this=0x4e31dfa8, __n=6) at /usr/include/c++/14/debug/vector:517
#11 0x00007f8305183b4d in SvTreeListBox::GetTab (this=0x4e31dbb0, pEntry=0x4e349e00, pItem=0x4b857ab0) at vcl/source/treelist/treelistbox.cxx:3203
#12 0x00007f830513529c in lcl_DumpEntryAndSiblings (rJsonWriter=..., pEntry=0x4e349e00, pTabListBox=0x4e31dbb0, bCheckButtons=false)
at vcl/source/treelist/svtabbx.cxx:102
#13 0x00007f8305135f7b in SvTabListBox::DumpAsPropertyTree (this=0x4e31dbb0, rJsonWriter=...) at vcl/source/treelist/svtabbx.cxx:217
#14 0x00007f830513868b in SvHeaderTabListBox::DumpAsPropertyTree (this=0x4e31dbb0, rJsonWriter=...) at vcl/source/treelist/svtabbx.cxx:647
#15 0x00007f83058951b1 in JSDialogNotifyIdle::generateWidgetUpdate (this=0x4e32b530, pWindow=...) at vcl/jsdialog/jsdialogsender.cxx:111
Change-Id: Ia617d18c9cdf1170f50cbda3082e548777196dcd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187351
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 1cb5d4338d8467645494b5723b35aba031aea51b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187360
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 9e96f6977cee732d96b582cfb0622267c99fa454)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187371
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-04 SilverGreen93 <mihai.vasiliu.93@gmail.com> [c5d042c66ea96ccf467a6f132cdf704c3e5f081c]
tdf#167273: Fix typos in Theme Color Edit dialog
Change-Id: I675b9fb8eb3e02e4630227868b60638d580ea6eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187118
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Jenkins
(cherry picked from commit 53abfabf8f4080fde688789f966b70ef3caa387b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187396
Reviewed-by: Mihai Vasiliu <mihai.vasiliu.93@gmail.com>
2025-07-04 Mike Kaganski <mike.kaganski@collabora.com> [ad76806524aae8c07481b0e4133c24f20c4fc687]
tdf#167378: handle css::bridge::oleautomation::Date in CellValueSetter
Commit 63e7a70ad1a6a8ec4190ab510f683d2fc9dea417 (tdf#164811: swap the
"if IsCompatibility()" branches to match other places, 2025-01-23)
made dates be passed as oleautomation::Date in VBA compatibility
mode. These values were handled in CellValueGetter::processValue; but
CellValueSetter::processValue lacked similar handling. This change
fixes the omission.
Change-Id: I8e97792f2014f16bf9a7520fcb6c46848d9fa938
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187393
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit e90e4b81b049a9d7c36de8d7f0371e2da7c60c01)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187408
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-04 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [25fc475be265d44487f569c7b61a304eecb4ea9c]
tdf#167080 macOS: fix opening PDFs in signed builds
the parent-launch constraints worked for their intended purpose, but for
the wrong reason. External launches weren't blocked because the parent
didn't match the constraints, but because the parent didn't have stuff
defined/stuff that the OS didn't recognize. And that then also blocked
the xpdfimport helper, which is used to import PDFs into LibreOffice.
The parent-constraints are set via the --launch-constraint-parent flag
when running codesign, but was also added as an additional dict layer in
the plist file, and that apparently is not valid, but still accepted.
In Console.app, the block should be logged with
c[4]p[2]m[1]e[0], (Constraint not matched)
constraint identifier 4, i.e. launch constraint
process identifier 2, i.e. related to the parent process
match result 1, i.e. the launch constraints not matched
error code 0, i.e. no error
instead it was
c[4]p[2]m[5]e[5], (parent-constraints)
a generic parent-constraints error with
match result 5, "The operating system couldn’t match the executable file
with the constraint, because the constraint contains a non-optional fact
that isn’t defined for the executable file."
so far no difference to the expected validation error, but the
error code is 5, "The launch constraint contains a fact that the
operating system doesn’t recognize."
So even LibreOffice itself didn't qualify as a parent process and the
xpdfimport helper was blocked.
see also:
https://developer.apple.com/documentation/security/applying-launch-environment-and-library-constraints
Change-Id: I0debdb87f04a69f58fcb543d027bdc3b9a4ea0cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187412
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
(cherry picked from commit 14b5fa6d6cadd8be1c62017c4d500903b4a6f386)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187415
2025-07-04 Kurt Nordback <kurt.nordback@collabora.com> [1abd106a51db4040ba50a58ca1c253c391b2c230]
tdf#165742 Step 4.6: Establish a narrow export path for chartex
This is a subtask of tdf#165742: Chartex charts are lost on input from
OOXML and re-export.
Fix an existing bug in chart import, which results in the incorrect
default value for stroke width on chart shapes. This was discovered
in testing chartex and can be reproduced in a hand-edited pre-2016
file (<c> namespace), but may not manifest there in practice since
it appears MS Office may always output an explicit stroke width for
pre-2016 charts.
Change-Id: I458ae6ad0eaf28bf933c8ae0baed36e48df114b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186582
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
(cherry picked from commit c8b26350d9aaf9cc8f8202ab66d199700f3be604)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187380
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-04 Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> [64dd4e00b83ea841c0ca4b8c793b9d99ed6913d0]
Update git submodules
* Update translations from branch 'libreoffice-25-8'
to a0190cd409b3425e84f437533357e24493981dbf
- update translations for master/25.8
and force-fix errors using pocheck
Change-Id: Idc4579eddc641db5e817c38f8c65f033a31b44ed
(cherry picked from commit 03101f782608a0ef33500fa4bed5ede18b774416)
- update translations for master/25.8.0 RC1
and force-fix errors using pocheck
Change-Id: Ibf5ce39b9d60647ef6309aa492e3a7af10f09d53
(cherry picked from commit 711561bb9108e4424245b7b47c6fecc47dd32707)
2025-07-04 Xisco Fauli <xiscofauli@libreoffice.org> [1a049194638a715ecf7020401adfb3a8b8810a9b]
fontconfig: fix build
after
commit 0798f0f6e00e6c099cdf45c8356739ea2cc214ff
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date: Thu Jul 3 15:57:20 2025 +0200
fontconfig: upgrade to 2.17.1
Change-Id: I226f53c1086ff86d53e85f3b2b3c6d74378b68ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187376
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-07-04 Jonathan Clark <jonathan@libreoffice.org> [d96e5bc3379fa3ae7119f49fd2083c882e551cbe]
tdf#166339 vcl: Use gamma-corrected font rendering in Skia
Reverts the following commit:
commit 2b00d3deb2d637916c142ef03a5e31ac5189f314
Date: Tue Mar 17 16:09:08 2020 +0100
do not use Skia's gamma correction for text
Using SK_GAMMA_APPLY_TO_A8 seems to be Skia's build default, but
it makes fonts harder to see (gray instead of black). With this change,
Skia now looks to be pixel-perfect when compared with the gen VCL
backend.
This commit disabled gamma correction for text rendered by Skia under
X11. Disabling gamma-correct rendering causes nasty artifacts, like
fringing or text appearing as the wrong weight.
The main consequence of this change is that GUI text may appear lighter
than it does under backends that don't handle gamma correctly. Skia
provides some parameters we can tune if needed, but it would be better
to fix those backends instead.
Change-Id: I6a4d90e33a57cbb397bcc9539a3c307a370c8b1d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187348
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 6e7860f021b27193b44f803b1e39f3508559bb47)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187357
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-03 Xisco Fauli <xiscofauli@libreoffice.org> [cbc25a18675d83193cc72313389f08e5c07f038f]
fontconfig: upgrade to 2.17.1
Downloaded from https://gitlab.freedesktop.org/api/v4/projects/890/packages/generic/fontconfig/2.17.1/fontconfig-2.17.1.tar.xz
Change-Id: I5a2235de014e73e020c2330536487e9446b35fcc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187338
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 0798f0f6e00e6c099cdf45c8356739ea2cc214ff)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187343
2025-07-03 Justin Luth <jluth@mail.com> [fca3052a08f0eb6ffe161c0eb3bb7ef8548351f2]
tdf#161521 tdf#166305 docx export: fix page margins when mirrorMargins
This patch is basically Oliver's original work
that he reverted in tdf#165083.
His problem was that he trusted Sections().CurrentSectionInfo()
to be accurate in this context.
I substituted m_pCurrentPageDesc.
make CppunitTest_sw_ooxmlexport19 CPPUNIT_TEST_NAME=testTdf153196
Change-Id: Iedce7b6460664301f65f3ce2cf0a97c4e26194d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186696
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
(cherry picked from commit a4e7d0028efb8fa07d0877aff81fb406f9464fb4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186719
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-03 Xisco Fauli <xiscofauli@libreoffice.org> [22f305abd226adabaf3340bbf8d286b904460b12]
openssl: upgrade to 3.0.17
Downloaded from https://github.com/openssl/openssl/releases/download/openssl-3.0.17/openssl-3.0.17.tar.gz
Change-Id: I2b796bc9c6917ecc92032d011ef7a3c4bd266c81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187326
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit e0e04ab7eb742b373fadd252c8de17f48177fef8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187334
2025-07-03 Xisco Fauli <xiscofauli@libreoffice.org> [ba39f47385302c6cbbbb2a72fa5218dd1f82514d]
sw: use SAL_RET_MAYBENULL in GetSfxViewShell()
after
commit 7ac9630d2258ae4b40917b79b38fa6cab0842078
Author: Caolán McNamara <caolan.mcnamara@collabora.com>
Date: Tue Jul 1 09:24:54 2025 +0100
null GetSfxViewShell() deref
Change-Id: If7e5019cf49917d163b36fc1aab24de64e10c4ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187242
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
(cherry picked from commit 7768dd07b87c4e94365aceba1a8342d894dbc3d3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187336
2025-07-03 Michael Weghorn <m.weghorn@posteo.de> [817d32963f58cf9cc8d6624acec679d7af2b7fa3]
tdf#167338 sw a11y: Set a11y names for envelope orientations
Set the accessible name to the same strings as are
already used for the tooltips.
This makes screenreaders announce what these radio
buttons are about, instead of just saying "radio button"
for these items in the "Printer" tab of Writer's
"Envelope" dialog ("Insert" -> "Envelope").
Change-Id: Ie219cddedd1abcb98e3ad4b870b8f1fe50410827
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187260
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit 7e59eaaf2eb2690c870fcdf43160880f62fbfd6c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187262
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-07-03 Xisco Fauli <xiscofauli@libreoffice.org> [354ddaa0f4ee3fde0be8bc65a5d0c4bfc620080f]
libpng: upgrade to 1.6.50
Downloaded from
https://sourceforge.net/projects/libpng/files/libpng16/1.6.50/libpng-1.6.50.tar.xz/download
Change-Id: I4906134e3343ab541b64e27d47d63519b5a49bd6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187310
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 9ffd4bf12d953159f68d509902112c8b43062a9b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187328
2025-07-03 Regina Henschel <rb.henschel@t-online.de> [f422d1366269a0fa611f7018dd73d933e7d2ca6e]
tdf#167134 Allow different directions in LOOKUP
... for search vector and result vector when such vectors are given as
inline array.
AOO, Excel, Gnumeric and older LO versions allow it. Different
directions are also possible if the vector is given by a cell range.
The unintended change slipped in with commit
5079e1fb668b31989672efc097c82ced6cbf4137.
Besides the unit test for tdf#167134, I have added a second unit test
about other situations that have inline arrays as parameter of LOOKUP.
LO does currently not fail for them, but this test might prevent
unintended behavior changes in the future. Such tests do not yet exist.
Change-Id: I21dd6b75d54aa938dcffbd2375acc51d3168b904
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187289
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Tested-by: Jenkins
(cherry picked from commit 5c0961129820fbc9dc8ec12c8a43a352ef1856a3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187302
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-03 Caolán McNamara <caolan.mcnamara@collabora.com> [8b6f61546283addf32488685813e60fa3214c2f5]
use-after-free on deleted ViewShell
#0 0x00007eef974b992d in __dynamic_cast () from /lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x00007eef83ffb326 in SdXImpressDocument::GetViewShell (this=this@entry=0x5511adc0)
at sd/source/ui/unoidl/unomodel.cxx:3848
#2 0x00007eef83ffb6dc in SdXImpressDocument::setClipboard (this=0x5511adc0, xClipboard=...)
at sd/source/ui/unoidl/unomodel.cxx:4457
#3 0x00007eef9336a4f8 in (anonymous namespace)::forceSetClipboardForCurrentView (pThis=<optimized out>)
at desktop/source/lib/init.cxx:1379
3848 DrawViewShell* pViewSh = dynamic_cast<DrawViewShell*>(mpDocShell->GetViewShell());
(gdb) print mbDisposed
$1 = true
an earlier sanitizer trace is:
program/../program/libsdlo.so
sd::DrawDocShell::GetViewShell()
libreoffice/sd/source/ui/inc/DrawDocShell.hxx:109
program/../program/libsdlo.so
SdXImpressDocument::GetViewShell()
libreoffice/sd/source/ui/unoidl/unomodel.cxx:3105
program/../program/libsdlo.so
SdXImpressDocument::setClipboard(com::sun::star::uno::Reference<com::sun::star::datatransfer::clipboard::XClipboard> const&)
libreoffice/sd/source/ui/unoidl/unomodel.cxx:3676
program/libmergedlo.so
(anonymous namespace)::forceSetClipboardForCurrentView(_LibreOfficeKitDocument*)
libreoffice/desktop/source/lib/init.cxx:1324
program/libmergedlo.so
doc_createViewWithOptions(_LibreOfficeKitDocument*, char const*)
libreoffice/desktop/source/lib/init.cxx:6895
/usr/bin/coolforkit
lok::Document::createView(char const*)
libreoffice/include/LibreOfficeKit/LibreOfficeKit.hxx:549
/usr/bin/coolforkit
Document::load(std::shared_ptr<ChildSession> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
kit/Kit.cpp:1912
/usr/bin/coolforkit
Document::onLoad(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
kit/Kit.cpp:1230
/usr/bin/coolforkit
ChildSession::loadDocument(StringVector const&)
kit/ChildSession.cpp:905
/usr/bin/coolforkit
ChildSession::_handleInput(char const*, int)
kit/ChildSession.cpp:297
/usr/bin/coolforkit
Session::handleMessage(std::vector<char, std::allocator<char> > const&)
common/Session.cpp:288
/usr/bin/coolforkit
Document::forwardToChild(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<char, std::allocator<char> > const&)
kit/Kit.cpp:2048
/usr/bin/coolforkit
Document::drainQueue()
kit/Kit.cpp:2271
/usr/bin/coolforkit
KitSocketPoll::drainQueue()
kit/Kit.cpp:2668
/usr/bin/coolforkit
KitSocketPoll::kitPoll(int)
kit/Kit.cpp:2747
/usr/bin/coolforkit
pollCallback(void*, int)
kit/Kit.cpp:2838
program/libmergedlo.so
SvpSalInstance::ImplYield(bool, bool)
libreoffice/vcl/headless/svpinst.cxx:430
program/libmergedlo.so
SvpSalInstance::DoYield(bool, bool)
libreoffice/vcl/headless/svpinst.cxx:471
program/libmergedlo.so
ImplYield(bool, bool)
libreoffice/vcl/source/app/svapp.cxx:396
program/libmergedlo.so
Application::Yield()
libreoffice/vcl/source/app/svapp.cxx:480
program/libmergedlo.so
Application::Execute()
libreoffice/vcl/source/app/svapp.cxx:374
program/libmergedlo.so
desktop::Desktop::Main()
libreoffice/desktop/source/app/app.cxx:1605
program/libmergedlo.so
ImplSVMain()
libreoffice/vcl/source/app/svmain.cxx:229
program/libmergedlo.so
soffice_main
libreoffice/desktop/source/app/sofficemain.cxx:94
program/libmergedlo.so
lo_runLoop(_LibreOfficeKit*, int (*)(void*, int), void (*)(void*), void*)
libreoffice/desktop/source/lib/init.cxx:7735
/usr/bin/coolforkit
lok::Office::runLoop(int (*)(void*, int), void (*)(void*), void*)
libreoffice/include/LibreOfficeKit/LibreOfficeKit.hxx:1128
/usr/bin/coolforkit
lokit_main(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, bool, bool, bool, bool, bool, unsigned long)
kit/Kit.cpp:3495
/usr/bin/coolforkit
createLibreOfficeKit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, bool)
kit/ForKit.cpp:450
/usr/bin/coolforkit
forkLibreOfficeKit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)
kit/ForKit.cpp:500
/usr/bin/coolforkit
forkit_main(int, char**)
kit/ForKit.cpp:876
/usr/bin/coolforkit
main
kit/forkit-main.cpp:19
/lib64/libc.so.6
__libc_start_main
??:?
/usr/bin/coolforkit
_start
??:?
freed by thread T0 (kitbroker_011) here:
/usr/bin/coolforkit
operator delete(void*, unsigned long)
/home/collabora/lode/packages/llvm-llvmorg-12.0.1.src/compiler-rt/lib/asan/asan_new_delete.cpp:172 (discriminator 5)
program/libmergedlo.so
SfxViewFrame::ReleaseObjectShell_Impl()
libreoffice/sfx2/source/view/viewfrm.cxx:1167
program/libmergedlo.so
~SfxViewFrame
libreoffice/sfx2/source/view/viewfrm.cxx:1977
program/libmergedlo.so
SfxViewFrame::Close()
libreoffice/sfx2/source/view/viewfrm.cxx:1189
program/libmergedlo.so
SfxFrame::DoClose_Impl()
libreoffice/sfx2/source/view/frame.cxx:138
Change-Id: Iec746b4473a20ba9c6b5e338f64f9f2380e2db13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187258
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 5de2f6822a06a92216b65cf241116404733f88ca)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187272
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-07-03 Caolán McNamara <caolan.mcnamara@collabora.com> [397695d6de0d36ee7b84954312c62d90c4d9acd5]
null-deref of m_xChartDoc seen
#0 0x00007d2c10f56497 in rtl::Reference<chart::Diagram>::Reference (handle=..., this=<optimized out>)
at include/rtl/ref.hxx:79
#1 chart::ReferenceSizeProvider::setValuesAtAllDataSeries (this=0x7ffce60d8d70)
at chart2/source/tools/ReferenceSizeProvider.cxx:95
#2 0x00007d2c10cd6a1f in chart::ChartController::impl_adaptDataSeriesAutoResize (this=<optimized out>)
at chart2/source/controller/main/ChartController_Tools.cxx:192
#3 0x00007d2c10cb3cec in operator() (nResult=<optimized out>, __closure=<optimized out>)
at chart2/source/controller/main/ChartController.cxx:1672
#4 std::__invoke_impl<void, chart::ChartController::executeDispatch_SourceData()::<lambda(int)>&, int> (__f=...)
at /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/invoke.h:61
#5 std::__invoke_r<void, chart::ChartController::executeDispatch_SourceData()::<lambda(int)>&, int> (__fn=...)
at /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/invoke.h:111
#6 std::_Function_handler<void(int), chart::ChartController::executeDispatch_SourceData()::<lambda(int)> >::_M_invoke(const std::_Any_data &, int &&) (__functor=..., __args#0=<optimized out>) at /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/std_function.h:290
--> --------------------
--> maximum size reached
--> --------------------
¤ Dauer der Verarbeitung: 5.936 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-25
|