Commit graph

497904 commits

Author SHA1 Message Date
Caolán McNamara
0eb68857da ofz#70412 Integer-overflow
Change-Id: I3c12382110fa9a22474adba12c6e5772e45c65e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170796
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-20 17:53:46 +02:00
Mike Kaganski
07cc2fdc3d tdf#162115 Add intl data for Firebird
Change-Id: I1dff81bc1ae8e794279b217cced042783293635d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170791
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-07-20 16:42:59 +02:00
Mike Kaganski
1edfbb3108 tdf#136637: handle SQLException in OStatementBase::disposing
The problem was unhandled exception thrown from destructor, resulting
in a crash.

Change-Id: Ib9d2deb2fe9745bf8df060c4e5bf6436b4ca468d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170790
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-07-20 16:42:15 +02:00
Caolán McNamara
0999687367 cid#1607830 Use of auto that causes a copy
and

cid#1607722 Use of auto that causes a copy
cid#1557606 Use of auto that causes a copy
cid#1557569 Use of auto that causes a copy
cid#1556239 Use of auto that causes a copy
cid#1556043 Use of auto that causes a copy
cid#1554961 Use of auto that causes a copy
cid#1554818 Use of auto that causes a copy

Change-Id: I9f74c7bc4da2c6b1df80d0fb4504dd4d03eb1053
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170784
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-20 16:40:49 +02:00
Noel Grandin
3e93e4ac7c RES_PAGEDESC does not need to be a surrogate pool item anymore
Change-Id: Iba1ed6c0791196708b18fefeb2839601bd3df61e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170782
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-20 15:44:24 +02:00
Armin Le Grand (Collabora)
7297b0788f CairoSDPR: Support direct RGBA paint of PolyPolygons
Change-Id: Id1480297126bcc422945df7cd47993cc7fe5c22a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170768
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
2024-07-20 14:19:35 +02:00
Patrick Luby
926ed71244 tdf#161729 clear style sheets in same order as they were added
std::vector::clear() appears to delete elements in the
reverse order added. In the case of tdf#161729, a style
sheet's SfxItemSet can have a parent SfxItemSet and that
parent is the SfxItemSet for a style sheet added later.

Deleting from the end of the vector deletes a style sheet
and its SfxItemSet. If the now deleted SfxItemSet is a
parent SfxItemSet of a style sheet that was added earlier,
the style sheet added earlier will now have an SfxItemSet
with its parent set to an already deleted pointer. And so
a crash will occur when that earlier style sheet is deleted.
rxStyleSheet.clear();

Change-Id: I8ce7023fce8b01432cb3c9288a8f83e7a2f0f2d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170707
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-20 13:01:36 +02:00
Gabor Kelemen
6c0db491f0 tdf#43157 Use SAL_WARN_IF instead of OSL_ENSURE
Change-Id: Id4674025a6abcacd5a8096630908c3e2f7a2821c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168129
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
2024-07-20 12:34:57 +02:00
Gabor Kelemen
722d0c8b9d tdf#43157 Use SAL_WARN instead of OSL_FAIL
Change-Id: I753254e2e6963e78420288d4c4919cb24282ac81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168128
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
2024-07-20 12:32:12 +02:00
Andrea Gelmini
78dff684cb Fix typo
Change-Id: Ibf0f3b94f1a51f86b53ddbe04aa2ee0900c31e0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168678
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-07-20 12:05:54 +02:00
Gabor Kelemen
e1a351ca19 Remove now unneeded osl/diagnose.h
followup to commit 57c228803e

Change-Id: Iebfb23bb65e2bf898bf27f367cc9641f47a14cf3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167998
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
2024-07-20 10:20:31 +02:00
Andrea Gelmini
ec758dbfcc Fix typo
Change-Id: I197ce7d28e92a9a73ae506c11e407dea838837e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170786
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-07-20 08:52:29 +02:00
Mike Kaganski
1b796287df tdf#162111: promote integer types automatically
The problem was, that importing an HTML table into Firebird, and creating
a primary key, called OParameterUpdateHelper::updateInt for each record's
primary key field.  Since commit c07548447a
(Related: tdf#108057 Use autoincrement for automatically added primary key,
2024-03-20), the type of autocreated primary key in Firebird databases is
SQL_INT64, and before this change, OPreparedStatement::setInt failed when
the real field's type wasn't strictly SQL_LONG.

This allows Firebird SDBC's  integral OPreparedStatement::set* methods to
promote to larger numeric types capable to represent the values.

Change-Id: I7615c8e9ffa29271d04cf264bb950cb76946dfd6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170787
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-07-20 07:55:03 +02:00
Eike Rathke
553c128e3f Eliminate unnecessary DateTime conversions
Change-Id: I7bda80e01d37ecd8c2d7e3f8b9ad6fac1e74f3a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170698
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2024-07-20 00:35:57 +02:00
Andrea Gelmini
7118f7e800 Fix typos
Implementing Christian fixes from comments here:
https://gerrit.libreoffice.org/c/core/+/169901/3

Change-Id: I66c2e596820f481a78e8129d5e77ac292eb8b925
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170779
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-07-20 00:32:11 +02:00
Xisco Fauli
6cbfaee591 CppunitTest_sd_annotation_tests: remove redundant ProcessEventsToIdle
it's already called inside dispatchCommand

Change-Id: I037fca27b55db2001364fa2b97c661413389f421
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170781
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-07-19 23:19:57 +02:00
Xisco Fauli
dea33b0863 tdf#161899: sd_annotation_tests: Add unittest
Also add a test for uno.DeleteAllAnnotation

Change-Id: Icc8cfbad50879b5bc0e9e2b9996666cff0a85cb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170780
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-07-19 23:19:39 +02:00
Miklos Vajna
d06de2e049 Related: tdf#162072 DOCX import: handle font family for characters
Open the bugdoc, the first paragraph is meant to be sans and the second
paragraph is meant to be serif, but both of them are serif.

The bugdoc uses the fonts 'IBM Plex Sans' and 'IBM Plex Serif', which is
not something we bundle, so the font fallback is expected, but the
fallback should have a matching font family (roman vs swiss).

Fix the problem by implementing support for <w:family w:val="..."> in
the DOCX import, which was just ignored previously.

Now the DOCX import result in on par with the ODT import result.

Change-Id: I321b9fc6f63126ca5ad61af57af8a5bc7456d5b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170772
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-07-19 22:38:42 +02:00
Moritz Duge
6fd88230b5 tdf#161909: Repair certdialog columns with VCLPLUGIN != gtk3
Second column was broken since commit cd384e2d31

Change-Id: I4351ff2b3c2ca23884ab0f73906bfe120dc4f298
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170667
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-19 21:37:52 +02:00
Michael Stahl
46e21942bf configure,curl: enable GSSAPI on Linux/MacOS/etc.
This will link libgssapi_krb5.so.2 which is in krb5-libs (ABI CL1 in
RHEL8, ABI CL2 in RHEL9).

Change-Id: I2dbaa64e70f4502c5a47c6c85123c94b9ad41277
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170758
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-07-19 21:36:53 +02:00
Caolán McNamara
3ffd9de3c4 resave with latest glade
Change-Id: I9ff2454c5226c224a5211f2b4cb977e84a8c4219
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170777
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-19 21:36:16 +02:00
Caolán McNamara
dfb3b65682 getting the "manual cert path" throws unexpectedly
OUString sManualCertPath = officecfg::Office::Common::Security::Scripting::ManualCertDir::get();

in CertPathDialog::Init throws rather unexpectedly

since:

commit eca3134479
AuthorDate: Tue Oct 1 15:24:26 2019 +0000

    tdf#127909 save manually selected certificate path

Change-Id: Icafb8001e8cae2dff350f2267994d19dd73fe1a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170776
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-19 21:36:08 +02:00
Attila Szűcs
352e564dd1 SW: random ID for new content controls
Make the generated unique ID random for new content controls.
This way if we copy paste them from different documents,
they may still be unique.

Change-Id: I2adb6577e08b5798ae88a63b6178352aa76280d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170773
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-07-19 21:26:28 +02:00
Noel Grandin
d54ef79c77 don't use GetItemSurrogates in SwNode::FindPageDesc
They are quite slow, and we want to reduce usage of them

Change-Id: Idae1d6035942d29d67269a22b2a771616ea836af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170775
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-19 21:26:14 +02:00
Noel Grandin
dd18aed100 don't use GetItemSurrogates in SwPageNumberFieldType::ChangeExpansion
They are quite slow, and we want to reduce usage of them

Change-Id: I5ab3b55e9270419877a08dd1d711ba2fa757a1b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170774
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-07-19 21:26:05 +02:00
Noel Grandin
0ee4b0339c reduce cost of dynamic casting in SdrMarkView::CheckSingleSdrObjectHit
which shows up when navigating large complex documents with
lots of shapes

Change-Id: I0631daf1365387f1192815402921ada191ab6046
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170760
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-07-19 20:47:20 +02:00
Andrea Gelmini
f337994910 Fix typo
Change-Id: Iafef7f75454b20e941ab149035284927d6dc28f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169479
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Tested-by: Jenkins
2024-07-19 20:37:49 +02:00
Andrea Gelmini
beaea6538f Fix typo
Change-Id: I1b4316e9b02acbea96b596b26005bf1c774f9f40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169228
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-07-19 20:35:39 +02:00
Andrea Gelmini
9653335b87 Fix typo
Change-Id: Ic8196943a5b24541642a117555c2d695fb848db3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170754
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-07-19 20:21:24 +02:00
Andrea Gelmini
99c660a95c Fix typo
Change-Id: I3116ab658b21b0069c8b5f8e87723bbf4b84572e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170755
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-07-19 20:20:56 +02:00
Michael Stahl
3b7b1fedd7 uui: improve Authentication dialog
"Remember password" will also remember whether the "Use system
credentials" was checked.  Rename it to "Remember credentials" and place
it at the bottom of the dialog.

Change-Id: I672715edfa2080a325a0c492b53d6461591e1192
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170752
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
2024-07-19 19:53:09 +02:00
Stephan Bergmann
f0b9cec927 Drop obsolete "Ideas for an UNO bridge implementation"
Change-Id: Ibf1de9cf8dc18e62b5ee67b31a8e3f3748c3941b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170769
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-07-19 19:24:40 +02:00
Michael Weghorn
9a3018ee0b android: Drop unused import
Change-Id: Idd578c2f1a984f1ecb9618ddfa8563cc467a6af2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170767
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-07-19 18:32:15 +02:00
Michael Weghorn
2546dd1b28 android: Drop unused ViewportMetrics class
There's still the `ImmutableViewportMetrics` class that
actually gets used.

Change-Id: I4645a33812441a2de36d666423742b164da76bda
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170766
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-07-19 18:32:09 +02:00
Michael Weghorn
f1a130a87a android: Drop unnecessary semicolon
Change-Id: I6e47003e4c890da9c09b23f64a0e2eac24d2e6bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170765
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-07-19 18:32:00 +02:00
Michael Weghorn
2180a868cc android: Drop unused TextLayer class
Change-Id: Id4be67dc7c3ac7ad7a820fca6af730c776ec88f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170764
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-07-19 18:31:54 +02:00
Michael Weghorn
74d1b4e2d6 android: Drop unused local var
Change-Id: I31f02d8fbc0bb3b5b5cd57665ebd2c02138b654e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170763
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-07-19 18:31:48 +02:00
Michael Weghorn
d8f08430c1 android: Drop unused imports
Change-Id: Ic7f38227d982d1f402b12df85cf37fcda2558ad7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170762
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-07-19 18:31:43 +02:00
Michael Weghorn
f9f1e215cb android: Drop unused IntSize#nextPowerOfTwo(float)
Change-Id: Idec5616195875e4adec22a193d8d8a569de079e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170761
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-07-19 18:31:37 +02:00
Noel Grandin
2dad8286cf improve doc for SwFormatPageDesc
based on a comment from vmiklos

Change-Id: Ic627ec5eeee35c8a81854e083814c57c151bac13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170770
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-19 18:19:30 +02:00
Caolán McNamara
db2a7489fa Resolves: tdf#161662 use some hackery to bring bullet combobox height down
There are some Arabic, etc numbering options in there that cause gtk to
allocate a large odd-looking height for the combobox.

What we can try is to remove top/bottom padding for this widget, but
then sync it with a sizegroup to another combobox and then it gets a
more natural looking height.

Change-Id: Idecbb3ee7b61fe55805d26cabdbaf1885574b3cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170751
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-19 17:53:36 +02:00
Noel Grandin
7d924018f3 don't use GetItemSurrogates in SwFrame::GetVirtPageNum
So lets implement this just by walking the document node structure.
I have tried to limit how much of the document this method now scans,
to avoid it also turning into an O(n^2) problem, but I might
have missed something, so
(a) the loop might be too conservative, in which case
performance could be better.
(b) the loop might not go far enough, in which case we might see
bugs with virtual page numbers.

This shaves 10% off the rendering time of large complex docx
documents.

Change-Id: I69711c65197caf278bd3ad2931c4817e72b28c5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170451
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-19 17:26:30 +02:00
Andrea Gelmini
5915280c41 Fix typo
Change-Id: I005cbaafeb3f630bd5e5713181aa1ea64ae22ee7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170757
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-07-19 17:14:07 +02:00
Sarper Akdemir
2648907f51 make pop-up on Encrypt With GPG Key modal
Not setting any parent window for XDocumentDigitalSignatures
causes the key selection window to be non-modal, letting the
user keep editing the document without completing the
encryption interaction.

Change-Id: Ic7e66cb43606355beaffc720b7c23cdf4f81d934
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170630
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir@allotropia.de>
2024-07-19 17:11:26 +02:00
Justin Luth
f8c68d3499 related tdf#134204 : notify change unless all properties are handled #2
This patch is the biggest logic change in this patchset:
- no notify if single property (!pNewChgSet) didn't cause a change
    -bContinue can now be set false - avoiding a false notify
- multiple properties: don't block notify
    -by doing this, I can remove my earlier fix.
------------------------------------------------
Here is my logic:

    else if( pNewChgSet )
        bContinue = false
simply was incorrect logic. There is no way we can say that
no notification is needed simply because one property is unchanged.
AT BEST (which will be done in a follow-up patch)
we will need to track how many bContinue = false's there are
and see if they match the number of properties that were passed.
But sufficient should be to only block when Count == 1,
like pOldChgSet now does.
    bContinue = pNewChgSet->GetChgSet()->Count() > 1;

The variable pNewChgSet had been used earlier because it then
was checking if pNewChgSet->GetChgdSet...
But we can easily substitute pOldChgSet here, becoming
    else if (pOldChgSet)
        bContinue = pOldChgSet->GetChgSet()->Count() > 1;

There are three mutually exclusive code paths to consider:
   pOldChgSet, bNewParent, or just a single property
Since bNewParent overrides bContinue elsewhere, ignore it
and it also doesn't make sense to continue for a single property,
so this could simply become
    else
        bContinue = pOld... && pOld...->GetChgSet()->Count() > 1;
which is identical to the bContinue in the if clause,
and thus they could be combined.

Change-Id: Ifa5ba56226f4e77a00f3bc8089a8dcaaca2b91ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169898
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-07-19 17:08:36 +02:00
Andrea Gelmini
188218fbe8 Fix typo
Change-Id: I7a2a583f7646a6d881fecc47ba4cf9158d6d8dcb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170756
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-07-19 16:33:00 +02:00
Caolán McNamara
95100bd732 cid#1609598 COPY_INSTEAD_OF_MOVE
and

cid#1554697 COPY_INSTEAD_OF_MOVE
cid#1554709 COPY_INSTEAD_OF_MOVE
cid#1554764 COPY_INSTEAD_OF_MOVE
cid#1554804 COPY_INSTEAD_OF_MOVE
cid#1554821 COPY_INSTEAD_OF_MOVE
cid#1554833 COPY_INSTEAD_OF_MOVE

Change-Id: I3ee0bf523b1c8dfde3674ac5088abe5182cbfb34
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170720
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-19 14:53:52 +02:00
Andrea Gelmini
3a018f568b Fix typo
Change-Id: I4eb00c710a940371b2916ae52127f1ff7f808427
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170501
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Tested-by: Jenkins
2024-07-19 14:41:40 +02:00
Andrea Gelmini
7be0d9dfe5 Fix "lets" -> "let's"
Change-Id: Ie9b6961a2786a518876db7b26258e67e8afee848
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169760
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Tested-by: Jenkins
2024-07-19 14:40:23 +02:00
Miklos Vajna
cb3ab04ada CppunitTest_sw_uiwriter3: avoid font fallback in testTdf133967
I'm not sure when this started, but the testcase fails with:

- Expected: 6
- Actual  : 7

I.e. the initial page count is meant to be more than 1, but we
explicitly assert that page count.

Once gb_CppunitTest_set_non_application_font_use is set to abort for
this suite, then vcl says the font fallback is:

vcl/unx/generic/fontmanager/fontconfig.cxx:1195: PrintFontManager::Substitute: missing font: 'Albany' try: Liberation Sans instead

Do that replacement, that restores the 6 pages on load even in cases
where it was 7 previously.

Change-Id: I0cf40c0cdbbb5c1e894468371ea260f0d15a3e40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170759
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-07-19 14:37:57 +02:00