Commit Graph
520201 Commits
Author SHA1 Message Date
Andrea Gelmini 850aab7852 Fix typos in code and comments + some reformatting.
Change-Id: I5b6d62104e46c6eb5d142e7e11666806383eed09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210566
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-10 15:15:58 +02:00
Andrea Gelmini 6410690a38 Fix typos in code and comments.
Change-Id: I8f1419c60c8aec0784e6de685ba7f630ae99638d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210571
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-10 14:00:17 +02:00
Andrea Gelmini 0a67034a16 Fix typos
Change-Id: I98237dabf4900f367e7ac63dbdceb2731dd5b269
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209755
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-10 13:54:18 +02:00
Andrea Gelmini 54204e6e1b Remove duplicated include
Change-Id: Ib86d589dc366499f5eb563c882570f741b003c2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210597
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-10 13:53:16 +02:00
Xisco Fauli d9ff198304 xz/lzma: upgrade to 5.8.4
Downloaded from https://github.com/tukaani-project/xz/releases/download/v5.8.4/xz-5.8.4.tar.gz

Change-Id: Icf0c404dfc006722dc04ae4342ec9fbcfade5141
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210636
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-10 10:31:00 +02:00
Justin Luth 96dee50f31 tdf#157087 dinfdlg: recognize when SfxDocumentInfoItem changes
Since SfxDocumentInfoItem didn't compare m_bUseThumbnailSave
in operator==, it didn't notice that putting *pInfoItem
was different from the previous value.

It also isn't checking m_bUseUserData,
but that doesn't seem to matter in the current implementation
so I'll just leave that absent for now.

Change-Id: Ibd1e5b161a92f659c72b235885a7f01fdd9e4115
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210634
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-09-10 02:40:31 +02:00
Michael Weghorn 543ffb1e42 vcl: Drop unused SalInstance::BeforeAbort params
Only WinSalInstance overrides that virtual method
and it doesn't use the params. Drop them.

Change-Id: If3fd1130d1b678a253079672586401d48fa9a1c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210593
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-09-09 21:21:00 +02:00
Michael Weghorn 02083e4a5d vcl: Drop unused SalInstance::DoExecute param
The out param is unused in the only caller,
Application::Execute. Drop it.

Change-Id: I559e7e529300caffbb9d213c3387378dcbd4b8fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210595
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-09-09 21:20:50 +02:00
Michael Weghorn f9963bc6e1 qt: Simplify QtInstance::DoExecute
Return early in case Application::IsUseSystemEventLoop
returns false, which allows dropping one indentation
level.

Change-Id: Iad385718f9f2bc228c5fc1ba954b63495c878b5d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210594
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-09-09 21:20:43 +02:00
Justin Luth 6e445abec2 tdf#173410 oox: only process corner cells if both row and col enabled
The table style definition allows for special definitions
for the first and last rows and columns.
That means that the corners are somewhat ambiguous,
so each corner cell can also have a special definition.

However, the corner cell definition only applies
if both that row AND column have a special definition.

Change-Id: Ia5a0ecc2f5cf5ecd0f63e83883a4b693669828e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210612
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-09-09 19:36:40 +02:00
Xisco Fauli 8d6b90bd84 sw: use HAVE_MORE_FONTS
like the other places in the code

Change-Id: I0fe240284e6129b0f0d6ed403a89ce00ada18c9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210598
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-09 17:24:20 +02:00
Andreas Heinisch 4a419fa33c tdf#173370 - Avoid unchecked GetSdrPageView()
Change-Id: I13c762e48209dadead24e3a1fec81b7bcd489d07
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210587
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2026-09-09 16:51:01 +02:00
Caolán McNamara e65a82d91b ofz#550481740 not a valid value for type EmfPlusHatchStyle
drawinglayer/source/tools/emfphelperdata.cxx:771:32: runtime error: load of value 4280295456, which is not a valid value for type 'EmfPlusHatchStyle'
     #0 0x7b14dd7d4d02 in emfplushelper::EmfPlusHelperData::EMFPPlusFillPolygon(basegfx::B2DPolyPolygon const&, bool, unsigned int) drawinglayer/source/tools/emfphelperdata.cxx:771:32
     #1 0x7b14dd7f903a in emfplushelper::EmfPlusHelperData::processEmfPlusData(SvMemoryStream&, drawinglayer::geometry::ViewInformation2D const&) drawinglayer/source/tools/emfphelperdata.cxx:1776:29
     #2 0x7b14dd7c020c in emfplushelper::EmfPlusHelper::processEmfPlusData(SvMemoryStream&, drawinglayer::geometry::ViewInformation2D const&) drawinglayer/source/tools/emfplushelper.cxx:41:14
     #3 0x7b14dd932d9d in wmfemfhelper::implInterpretMetafile(GDIMetaFile const&, wmfemfhelper::TargetHolders&, wmfemfhelper::PropertyHolders&, drawinglayer::geometry::ViewInformation2D const&) drawinglayer/source/tools/wmfemfhelper.cxx:2957:43
     #4 0x7b14dd919d51 in wmfemfhelper::interpretMetafile(GDIMetaFile const&, drawinglayer::geometry::ViewInformation2D const&) drawinglayer/source/tools/wmfemfhelper.cxx:2993:9
     #5 0x7b14dd470d93 in drawinglayer::primitive2d::MetafilePrimitive2D::create2DDecomposition(drawinglayer::geometry::ViewInformation2D const&) const drawinglayer/source/primitive2d/metafileprimitive2d.cxx:42:42
     #6 0x7f14fb527e4f in drawinglayer::primitive2d::BufferedDecompositionPrimitive2D::get2DDecomposition(drawinglayer::primitive2d::Primitive2DDecompositionVisitor&, drawinglayer::geometry::ViewInformation2D const&) const drawinglayer/source/primitive2d/BufferedDecompositionPrimitive2D.cxx:90:41
     #7 0x7b14dd4727d5 in TestImportWMF drawinglayer/source/primitive2d/metafileprimitive2d.cxx:149:16

so keep the hatch style as the value read from the stream, and an
unknown one then reaches the switch default

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I9725f2f80d3a00fbf82ac5a84cf55b5c071af68b
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/11529
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 906c713f2cdd05372db04c1d807d31b1fff5377a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210589
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-09-09 15:55:23 +02:00
Xisco Fauli ecac4d4e18 sc: Add extra LET and LAMBDA name shadow checks
Based on
https://git.libreoffice.org/core/+/6e9235b16bca194a11fff6a84b2ea4a1bda2c933%5E%21

Change-Id: I6289945f96730bbd817d24ba45c9286e2e18338c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210596
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-09 15:55:11 +02:00
Caolán McNamara 5134879789 crashtesting: don't read a frame that JoinFrame destroyed
reproduce by loading crashtesting (rtf) file:
swxtextframe_createtextcursorbyrange.sample
and exporting it to pdf:

 #0 SwContentNode::GetSwAttrSet (this=0x0) at sw/inc/node.hxx:750
 #1 SwTextFrame::RecalcAllLines at sw/source/core/text/txtfrm.cxx:4130
 #2 SwLayAction::FormatContent at sw/source/core/layout/layact.cxx:1870
 #3 SwLayAction::InternalAction at sw/source/core/layout/layact.cxx:640
 #4 SwLayAction::Action at sw/source/core/layout/layact.cxx:418
 #5 SwViewShell::CalcLayout at sw/source/core/view/viewsh.cxx:990

the frame at #2 has m_pMergedPara 0, GetDep() 0 and mbInDtor true, so
it was freed under the object formatting two statements earlier:

 SwFrame::DestroyFrame            (the follow)
 SwTextFrame::JoinFrame                       frmform.cxx:778
 SwTextFrame::AdjustFollow_                   frmform.cxx:681
 SwTextFrame::FormatAdjust / Format_ / Format
 SwContentFrame::MakeAll                      calcmove.cxx:1633
 SwFrame::Calc                    (the MASTER)
 SwAnchoredDrawObject::MakeObjPosAnchoredAtPara
 SwObjectFormatter::FormatObj_
 SwObjectFormatterTextFrame::DoFormatObj
 SwObjectFormatter::FormatObjsAtFrame_

FormatContent is formatting a follow frame. Placing a drawing object
anchored in that paragraph calls Calc on the master, the master reflows
and takes back its text, and JoinFrame then destroys the follow.

the loop already keeps an SfxDeleteListener on pContentPrev, so keep one
on pContent too and return false, and the caller invalidates the page and
runs it again.

no unit test, the layout tests only have the bundled fonts and this
document asks for Palatino Linotype. Only P052, its metric substitute,
keeps the layout that splits the paragraph, and P052 isn't bundled
either, so the document needs adjusting first.

reached since:

commit ac332d53d565325f3db2697126d97e02a15e4b5d
Date:   Wed Aug 26 21:02:06 2026 +0000

    crashtesting: pass the collected page number to CheckMovedFwdCondition

which dropped the DoFormatObj assert that used to stop this document
before the object formatting could complete the join.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I64e95ba6d3a6fda6ab585b5f319be2fb8bca8533
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/11273
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit ab7337476075e0b903ec5cb705821d8b3a14e9f7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210590
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-09 15:18:26 +02:00
Xisco Fauli a8650d171a openldap: upgrade to 2.7.1
Downloaded from https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.7.1.tgz

Change-Id: Ia45c7b593be068bfb9f1cf8449ca1014e656681f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210586
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-09 15:17:25 +02:00
Ilmari Lauhakangas 5c4eeb28ba Update Ant in .winget files to point to 1.10.18
Switch to archive.apache.org for the URL as dlcdn does not retain old releases.

Change-Id: I295a1c8371ac543b73773749ba14e66671f8ced3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210561
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2026-09-09 14:53:20 +02:00
Arnaud Versini 8b2600bb4d sw : use more OUStringLiteral
Change-Id: Id0c3abbc2f44ca7ae818eeb357e435cc18793ea8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209730
Tested-by: Jenkins
Reviewed-by: Arnaud Versini <arnaud.versini@pm.me>
2026-09-09 14:08:03 +02:00
Caolán McNamara 890f388a78 move isScriptURLAllowed onto SfxObjectShell
it was private to sfx2's eventsupplier.hxx, so nothing outside sfx2
could run the AllowedDocumentEventURLs test

Change-Id: I814a965cafc245eb7b7f2d8fb18a81d1f7b7e50f
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/10920
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 4a5b2dd74b4e82b183961ca8f50d80bd485d5359)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210591
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-09 12:59:48 +02:00
Jim Raykowski ffe5fec61c tdf#134960 and tdf#172401 related: Improve hyperlink navigation
Makes hyperlink ordering in Navigator and Navigate By follow the
order of document occurrence including hyperlinks in footnotes and
endnotes.

Previous to this patch hyperlinks in footnotes and endnotes
were always listed first in the Navigator hyperlinks catagory.

Navigate By hyperlinks follow the same order as hyperlinks listed in the
Navigator.

Change-Id: Id28c98d4fa8dc5b7174a3ad2cd803dffb7f5ae93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207376
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-09-09 12:57:58 +02:00
Xisco Fauli 32664765cf sw: drop obsolete check. Minimum GCC version is 13
Since
commit 16dd61ab4d
Author: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Date:   Sat Mar 21 08:40:09 2026 +0200

    Bump minimum GCC version to 13

Change-Id: I27c55512018b3c02e7d67467019088457e3b8c06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210559
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-09-09 12:53:41 +02:00
DrRobotto 3251b11a4c tdf#146507 - Don't create an info printer for the font size menu
FontSizeMenuController::fillPopupMenu() built a printer and a font list
using it. Neither were used after the change from
pFontList->GetSizeAry() to FontList::GetStdSizeAry().

This construction ran once per context menu activation where it runs
through the printer driver on Windows. Hence, the delay was not present
on Linux.

Change-Id: Ia0d9bd6b789f6b99437e97373421cb13a744a9da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210516
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2026-09-09 11:06:13 +02:00
Jason Whitmore a73823a4c1 chart2: Add unit tests for CalculateBSplines
Change-Id: I46af0b5c72ef96c42ea0eb60a5c8b6383a556cdf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208265
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-09 09:33:05 +02:00
Xisco Fauli 6971d69b6a svl: drop obsolete check. Minimum GCC version is 13
Since
commit 16dd61ab4d
Author: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Date:   Sat Mar 21 08:40:09 2026 +0200

    Bump minimum GCC version to 13

Change-Id: I4077e7dd81815ce281c1b6097d0abdc255685f6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210558
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-09 09:31:25 +02:00
Xisco Fauli 406f55ced7 sc: drop obsolete check. Minimum GCC version is 13
Since
commit 16dd61ab4d
Author: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Date:   Sat Mar 21 08:40:09 2026 +0200

    Bump minimum GCC version to 13

Change-Id: I7e06e83b7987f36b20b764a164f2da22f022e25f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210557
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-09 09:31:19 +02:00
Xisco Fauli 866bd10639 mdds: drop obsolete check. Minimum GCC version is 13
Since
commit 16dd61ab4d
Author: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Date:   Sat Mar 21 08:40:09 2026 +0200

    Bump minimum GCC version to 13

Change-Id: I5ff7d526a2afd5c0b1d71d267ed90116d2441e8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210556
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-09 09:31:13 +02:00
Xisco Fauli f09f6ce641 cppu: drop obsolete check. Minimum GCC version is 13
Since
commit 16dd61ab4d
Author: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Date:   Sat Mar 21 08:40:09 2026 +0200

    Bump minimum GCC version to 13

Change-Id: I6f37996fc03b191eee78f3057323cb8d795e255f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210555
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-09 09:31:06 +02:00
Xisco Fauli 0514849637 oox: drop obsolete check. Minimum GCC version is 13
Since
commit 16dd61ab4d
Author: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Date:   Sat Mar 21 08:40:09 2026 +0200

    Bump minimum GCC version to 13

Change-Id: I8ac797a49acde27bc5f39af80e479bc5d218fd69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210554
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-09 09:30:51 +02:00
Andrea Gelmini b4db35eeb2 Fix typos
Change-Id: I1ab57e8e234c6bb25627f16c61d2e0e867b7ea04
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210177
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2026-09-08 22:48:42 +02:00
Vissarion Fisikopoulos 1ba114d561 Rephrasing STR_QRY_FORMAT_WARNING_2CHOICES string text
Change-Id: I4074ad27012bd207d0c09633cc232cd5179572fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210553
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
Tested-by: Jenkins
2026-09-08 19:15:23 +02:00
Aya Jamal e2f7535f6b tdf#103680: Rendering stacks using OpenType math constants
Change-Id: I5efe4b12f753b33a425af7a4164adfe2214c2eb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210473
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-09-08 18:45:03 +02:00
Caolán McNamara 6b783a7cc7 ofz#557289178 the top text append might not be a SwXText
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Iae36ce22ac78d7d69dba9d70285cc07affcb03ae
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/11522
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
(cherry picked from commit aeda82ce2db65f0ed6f59fc4826eab8653ef4a6d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210541
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-08 16:17:04 +02:00
Caolán McNamara 6c859d0acd crashtesting: don't thread a formula that uses ocSpill
see on loading forums/xlsx/forum-mso-en4-748529.xlsx and doing a
hard recalculation, which aborts with:

 soffice.bin: sc/inc/formulacell.hxx:514: void ScFormulaCell::MaybeInterpret():
 Assertion `!rDocument.IsThreadedGroupCalcInProgress()' failed.

 #4  ScFormulaCell::MaybeInterpret at sc/inc/formulacell.hxx:514
 #5  ScFormulaCell::IsEmpty at sc/source/core/data/formulacell.cxx:3153
 #6  FillMatrixHandler::operator() at sc/source/core/data/column2.cxx:2636
 #7  sc::ParseBlock at sc/inc/mtvfunctions.hxx:66
 #8  ScColumn::FillMatrix at sc/source/core/data/column2.cxx:2708
 #9  ScTable::FillMatrix at sc/source/core/data/table1.cxx:2700
 #10 ScDocument::FillMatrix at sc/source/core/data/documen8.cxx:400
 #11 ScInterpreter::CreateMatrixFromDoubleRef at sc/source/core/tool/interpr5.cxx:386
 #12 ScInterpreter::ScSpilledRange at sc/source/core/tool/interpr1.cxx:1703
 #13 ScInterpreter::DispatchOpCode at sc/source/core/tool/interpr4.cxx:3868
 #14 ScInterpreter::Interpret at sc/source/core/tool/interpr4.cxx:4414
 #15 ScFormulaCell::InterpretTail at sc/source/core/data/formulacell.cxx:2209
 #16 ScColumn::CalculateInThread at sc/source/core/data/column2.cxx:3270
 #17 ScTable::CalculateInColumnInThread at sc/source/core/data/table1.cxx:2740
 #18 ScDocument::CalculateInColumnInThread at sc/source/core/data/documen8.cxx:421
 #19 Executor::doWork at sc/source/core/data/formulacell.cxx:5463

ScSpilledRange calculates cells itself. It calls MaybeInterpret on the
master cell of the dynamic array, and CreateMatrixFromDoubleRef then
covers the whole spill range, so FillMatrix asks every cell in that
range whether it is empty and IsEmpty calculates it. A worker thread
inside a threaded group calculation must not calculate a cell.

The dependency evaluator can't cover it either, only the operand's own
cell is named by a reference token and how far the spill reaches is
known only once that cell has been calculated

an issue since:

commit 9b97b0fc91bce4b8726ea210347e8ea84270e148
Date:   Mon Jul 6 13:09:39 2026 +0000

    sc: add the # postfix operator for spilled-range references

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id58e88d1bd927576e4723dd23bc119673feed108
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/11285
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com>
(cherry picked from commit 89af05e8a5e8ce4ae337e2f0048f670940573930)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210542
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-08 16:16:39 +02:00
Caolán McNamara fe9db2c8e1 ofz#557542656 negation of -2147483648 cannot be represented
drawinglayer/source/tools/emfphelperdata.cxx:451:83: runtime error: negation of -2147483648 cannot be represented in type 'sal_Int32' (aka 'int'); cast to an unsigned type to negate this value to itself
     #0 0x7b71c0dc8ec7 in emfplushelper::EmfPlusHelperData::mappingChanged() drawinglayer/source/tools/emfphelperdata.cxx:451:83
     #1 0x7b71c0de6a2d in emfplushelper::EmfPlusHelperData::EmfPlusHelperData(SvMemoryStream&, wmfemfhelper::TargetHolders&, wmfemfhelper::PropertyHolders&) drawinglayer/source/tools/emfphelperdata.cxx:1503:9
     #2 0x7b71c0dc0059 in emfplushelper::EmfPlusHelper::EmfPlusHelper(SvMemoryStream&, wmfemfhelper::TargetHolders&, wmfemfhelper::PropertyHolders&) drawinglayer/source/tools/emfplushelper.cxx:29:17
     #3 0x7b71c0f31dc6 in wmfemfhelper::implInterpretMetafile(GDIMetaFile const&, wmfemfhelper::TargetHolders&, wmfemfhelper::PropertyHolders&, drawinglayer::geometry::ViewInformation2D const&) drawinglayer/source/tools/wmfemfhelper.cxx:2923:37
     #4 0x7b71c0f19d51 in wmfemfhelper::interpretMetafile(GDIMetaFile const&, drawinglayer::geometry::ViewInformation2D const&) drawinglayer/source/tools/wmfemfhelper.cxx:2993:9
     #5 0x7b71c0a70d93 in drawinglayer::primitive2d::MetafilePrimitive2D::create2DDecomposition(drawinglayer::geometry::ViewInformation2D const&) const drawinglayer/source/primitive2d/metafileprimitive2d.cxx:42:42
     #6 0x7f71deb27e4f in drawinglayer::primitive2d::BufferedDecompositionPrimitive2D::get2DDecomposition(drawinglayer::primitive2d::Primitive2DDecompositionVisitor&, drawinglayer::geometry::ViewInformation2D const&) const drawinglayer/source/primitive2d/BufferedDecompositionPrimitive2D.cxx:90:41
     #7 0x7b71c0a727d5 in TestImportWMF drawinglayer/source/primitive2d/metafileprimitive2d.cxx:149:16

so negate the frame offsets as doubles

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I2cf478245f30f4573bfa5ccb2c6dcbe5c603e38b
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/11528
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
(cherry picked from commit f6f1f208a87c2a725e5c20c6a7453fa5679eca76)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210540
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-08 16:16:21 +02:00
Dan Williams a7dbde8b02 vcl/qt: implement margins for widgets and layouts
Change-Id: Icbe7423754905f1b22be88eb5234625c2cec9b93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210226
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-09-08 13:43:05 +02:00
Dan Williams 54604e9b1d vcl/qt: honor row-spacing/column-spacing for QGridLayout
Use the GtkBuilder internal spacing properties.

Change-Id: Ibb26505e343801cca2dc5f728a91821983f5aa4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206478
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-09-08 13:42:48 +02:00
Dan Williams e4e60f2769 vcl: standardize Reset dialog button response code
Qt plugin automatically orders buttons for each platform based on
the button's role, which we derive from the Gtk .ui file's
action-widget response code. But to do that conversion from response
code to Qt button role, we need a standard response.

Without a standard response, the button has no role, and gets ordered
to the right of OK/Cancel buttons on Mac. With the correct role, it
is correctly placed far-left along with the Help button.

Change-Id: I16d3126d4999649e7aa6e72ec5e7b1a25f48c2a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210223
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Tested-by: Jenkins
2026-09-08 13:42:17 +02:00
Dan Williams da86a85994 vcl/qt: set MessageBox/Dialog button role for correct platform button order
Button response IDs are parsed late in the process of building a widget layout
from .ui files because they have their own section at the end. They show up
via QtBuilder::set_response() long after the button has been added to its
QDialogButtonBox. There appears to be no API to set a button's response after
it's already been added, so we need to re-add the button when we finally know
its response ID. The button box will then remove and re-add the button in
the right platform-specific order based on the response ID.

Pull out the button box adding logic to a separate function so we can do
the same thing from the two places it's required.

Change-Id: I29527eabcf68105b5e8c6fbffd4ca3822b7a5acb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206476
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
2026-09-08 13:41:56 +02:00
Xisco Fauli 11ccf42309 libxml2: upgrade to 2.15.4
Downloaded from https://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.4.tar.xz

Change-Id: I99abcbb27e61a0ae544a1136577453ed0cc0750c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210525
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-07 18:39:35 +02:00
Andreas Heinisch 52fe6ff648 tdf#97354 - Keep formula bar content visible while a ref dialog is open
Still clear the formula bar content when the view itself is no longer
active.

Change-Id: I2aab4c320c342676fc547b8879fc2e6986d88ce8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208862
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2026-09-07 11:30:08 +02:00
Julien Nabet e808025d6f tdf#146404: Fix number Format Code when reopen ods/fods
As Eike indicated in https://bugs.documentfoundation.org/show_bug.cgi?id=146404#c4
COLOR format codes are preserved in ods/fods format.
The pb was the missing map back.
Indeed, we had the mapping for [COLOR<something>] => Color value (eg: "ffaa16")
but not the reverse mapping Color value => [COLOR<something>]

Eike had provided the right code pointer in xmlnumfi.cxx.
First, I thought using PaletteManager but this one is in svx and svx shouldn't be used in xmloff
(dependency pb).
Then I used ChatGpt (GPT-5.6 Luna) and it pointed the right process.
It just consisted to use a similar callback system (DECL_LINK, IMPL_LINK, LINK) of GetUserDefinedColor.

In addition, by testing all this, I noticed that maList in XColorList::GetIndexOfColor was empty.
So I added the Load call in case mbListDirty is true.

Change-Id: I0ef6b5901f2e4c757e88994412dbf79a13100ffd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210518
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-09-07 10:17:29 +02:00
Julien Nabet 0df8960f56 tdf#173364: fix Unable to edit database range for xlsx document
The pb appears with 0d7be893f5:
Table Style: introduce insert/delete Table... command available from

with ods pData->GetTableStyleInfo() is nullptr so buttons like "Modify"
but also "Delete" or all the "Options" part, are enabled (sensitive=true)
with xlsx pData->GetTableStyleInfo() is not null and these same buttons are disabled.

I don't know if the return of GetTableStyleInfo is ok for both cases but I don't know why
we should test this to know if these buttons should be enabled or not.

To be homogeneous, I also did the same for m_xAssignFrame.

Change-Id: Ib2295f26b53163a9612159c1564227d9b2b8ca9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210506
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-07 10:16:20 +02:00
Julien Nabet 296b49f581 Related tdf#150928: replace character set by encoding (sc/part 3+connectivity)
Change-Id: I78d3c989be9e02e39d646b3c1eb672e3f37bd43c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209380
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-07 10:15:23 +02:00
Samuel Mehrbrodt 9fc9e5bc9e tdf#173381 PDF export: Make sure that link contents are always set
Use name, link text or the link itself - depending on what is available.

Change-Id: Iea6654e2aae22d39c031b2cb953c34a5a1ce42ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210458
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com>
2026-09-07 08:07:57 +02:00
Andreas Heinisch 766e4da2bb tdf#122473 - Import alignment and axis-based pivot area formats
Change-Id: I2b90187d8e6e9788cc37320dff9035f2042b30f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210016
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
2026-09-07 07:58:38 +02:00
ApurvR20 f4ce2515f8 tdf#153109 Replace ranged loop by ranges::any_of
Change-Id: I3223b8d86cde66070342602606de71170cacbe64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210519
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-09-07 07:31:09 +02:00
Tomaž Vajngerl 1d475cdae0 Keep a shape's color and its theme reference in step
The default drawing style names a theme color now, and a PPTX saved
to ODF and back came out with every shape green. A shape that really
did name a theme color lost the reference and came back plain.

A color item holds the color and the theme reference together.
Setting a plain color started from the item the shape inherits from
its style and overwrote the color alone, so the inherited reference
won. Clear the reference, which is what an explicit color means.

The ODF export repeats each shape's fill on a paragraph style,
applied after the graphic style, and the paragraph properties had no
complex color. Carry it there too.

A style's graphic properties took a complex color only when it was
the character one, matched by element name. Match on the context id,
which the fill and stroke colors share.

Add a round trip test through ODF and PPTX with a plain shape, a
themed one, and a themed one with a luminance modulation.

Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: Ia9550222d18a243287240e4184666d78d0abdd22
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/10060
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 07cf37b104983f765d3e1005f677e0058df12026)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210510
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-06 21:22:35 +02:00
Julien Nabet 4339f9dcbc Update git submodules
* Update helpcontent2 from branch 'master'
  to 099d2dbd383b6fc748d9aa9ca05ac9f2e9aaaaa2
  - tdf#173430: Update description for the "Ctrl+Minus key" and Ctrl+Plus key" shortcuts
    
    Change-Id: Id2c17c79eb4a6d3461a0765fd58a1f00e78a3328
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/210522
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-06 20:58:56 +02:00
Andrea Gelmini 031895cbd2 Fix typos in code and comments
Change-Id: Icaf6bb17102d2506f0955a6e76f9aaa8c3aa8908
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210511
Tested-by: Jenkins
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-06 00:06:31 +02:00
Caolán McNamara 5c7c41ef9e valgrind: ZCodec::InitDecompress uninitialised values on a short gzip header
Conditional jump or move depends on uninitialised value(s)
   at ZCodec::InitDecompress(SvStream&) (zcodec.cxx:353)
   by ZCodec::AttemptDecompression(SvStream&, SvStream&) (zcodec.cxx:384)
   by PlainTextFilterDetect::detect(...) (filterdetect.cxx:184)
   by filter::config::TypeDetection::impl_askDetectService(...) (typedetection.cxx:1139)
   by filter::config::TypeDetection::impl_detectTypeFlatAndDeep(...) (typedetection.cxx:1044)
   by filter::config::TypeDetection::queryTypeByDescriptor(...) (typedetection.cxx:439)
   by framework::LoadEnv::impl_detectTypeAndFilter() (loadenv.cxx:771)

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I952005ee74189a46d5faf39c8e7fef3ffda2082b
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/9153
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit a2cf813f1298301d2b95a58e77fe21714beafa32)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209314
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-09-05 12:46:12 +02:00