Commit graph

498669 commits

Author SHA1 Message Date
Mike Kaganski
a27a5dda1c Do not try to notify, if the thread is already killed
On a particular system, I see unit tests reliably hung at the exit time
(at a DLL unload), when it waits indefinitely in notify_all. It is the
only thread in the process left; TimerManager thread was likely killed
by that time.

This is the call stack of the hung state:

 ntdll.dll!ZwReleaseKeyedEvent()
 ntdll.dll!string "Enabling heap debug options\n"()
 msvcp140d.dll!Concurrency::details::stl_condition_variable_win7::notify_all() Line 178
 msvcp140d.dll!_Cnd_broadcast(_Cnd_internal_imp_t * cond) Line 93
 salhelper3MSC.dll!std::condition_variable::notify_all() Line 590
 salhelper3MSC.dll!salhelper::TimerManager::~TimerManager() Line 221
 salhelper3MSC.dll!``anonymous namespace'::getTimerManager'::`2'::`dynamic atexit destructor for 'aManager''()
 ucrtbased.dll!_execute_onexit_table::__l2::<lambda>() Line 206
 ucrtbased.dll!__crt_seh_guarded_call<int>::operator()<void <lambda>(void),int <lambda>(void) &,void <lambda>(void)>(__acrt_lock_and_call::__l2::void <lambda>(void) && setup, _execute_onexit_table::__l2::int <lambda>(void) & action, __acrt_lock_and_call::__l2::void <lambda>(void) && cleanup) Line 204
 ucrtbased.dll!__acrt_lock_and_call<int <lambda>(void)>(const __acrt_lock_id lock_id, _execute_onexit_table::__l2::int <lambda>(void) && action) Line 974
 ucrtbased.dll!_execute_onexit_table(_onexit_table_t * table) Line 231
 salhelper3MSC.dll!__scrt_dllmain_uninitialize_c() Line 399
 salhelper3MSC.dll!dllmain_crt_process_detach(const bool is_terminating) Line 182
 salhelper3MSC.dll!dllmain_crt_dispatch(HINSTANCE__ * const instance, const unsigned long reason, void * const reserved) Line 220
 salhelper3MSC.dll!dllmain_dispatch(HINSTANCE__ * const instance, const unsigned long reason, void * const reserved) Line 293
 salhelper3MSC.dll!_DllMainCRTStartup(HINSTANCE__ * const instance, const unsigned long reason, void * const reserved) Line 335
 ntdll.dll!LdrShutdownProcess()
 ntdll.dll!RtlExitUserProcess()
 ucrtbased.dll!exit_or_terminate_process(const unsigned int return_code) Line 144
 ucrtbased.dll!common_exit(const int return_code, const _crt_exit_cleanup_mode cleanup_mode, const _crt_exit_return_mode return_mode) Line 280
 ucrtbased.dll!exit(int return_code) Line 294
 cppunittester.exe!__scrt_common_main_seh() Line 297
 cppunittester.exe!__scrt_common_main() Line 331
 cppunittester.exe!mainCRTStartup(void * __formal) Line 17
 kernel32.dll!BaseThreadInitThunk()
 ntdll.dll!RtlUserThreadStart()

This check prevents that hang.
The behavior is *possibly* related to my commit
8a0c43fa86 (Use _beginthreadex instead of
CreateThread, 2023-08-09), which put the threads under control of CRT;
and also to the specific version of CRT on the affected system, which
might affect the order of statics destruction and thread termination.

Change-Id: I6da95ea369ac9433a426a12d62cbd2a09cb4ce4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172093
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-08-20 11:14:01 +02:00
Caolán McNamara
b95059acaf cid#1607396 silence Overflowed integer argument
Change-Id: I756688604ce80d0e9ca6494826767f49dcc13af1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172095
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-20 11:07:15 +02:00
Caolán McNamara
edb352c241 cid#1607042 silence Overflowed integer argument
Change-Id: I416f9f22c6ba464ef6a3416a3a0cebc34f2b6725
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172094
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-20 11:07:07 +02:00
Caolán McNamara
b6ff644abc Resolves: tdf#148830 ensure SplitWindow has enough space for splitter
Change-Id: Ib60b0e8acdffcda5b6835ff7207fffc4123d5c63
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172086
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-20 09:34:29 +02:00
AhmedHamed
e1183fb68e Make help button in FW has a fixed width
Change-Id: I79122e8ae1c05d1ad647dc990b641971c8bbca50
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171929
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-08-20 08:35:13 +02:00
Stephan Bergmann
af6a5ba20f Remove wasm-qt-mandelbrot demo
...that had been added with f90c68316c "WASM: add
Emscripten demo application".  Whatever the original intention, it has probably
served its purpose by now---and now only negatively impacts (re-)build times.

Change-Id: I2bda8d12b91e741c4d0f7d3f02597e0e9505a73a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172087
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-08-20 07:58:01 +02:00
Mike Kaganski
4a32b04fd1 Explicitly request antialiasing in a test
See commit a8d677035a (Make sure to
anti-alias fonts on Windows, when required, 2024-08-19).

Change-Id: I67f863b61002da883a91ca09aa432162985c755b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172042
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-08-20 04:34:40 +02:00
Mike Kaganski
a1b18eba35 Implement Custom Font Collections on pre-Windows 10 systems
Commit 68818db0ec (build a
IDWriteFontCollection1 of our FR_PRIVATE fonts, 2022-01-11) used
dwrite_3.h, which has API available only starting from Windows 10.
For pre-Windows 10 versions, there is a different way to implement
this, as explained at

https://learn.microsoft.com/en-us/windows/win32/directwrite/custom-font-collections

This change implements that more complex way as a fallback, until
we bump the baseline. Allows to not fall back to gdi in Skia, like
with the original commit, just on older Windows versions.

Change-Id: Ieca13e4a04bc72ce877ab9b512c7821d5466cb70
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172090
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-08-20 04:34:26 +02:00
Xisco Fauli
a05432f02b sw: remove duplicated check
after 3a961b522a
"sw: use SAL_RET_MAYBENULL in GetTableBox()"

Kudos to M. Stahl for flagging it

Change-Id: I44879da9206a1c04869b22c7a7b3bb18955f1953
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172052
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-08-19 22:58:39 +02:00
Justin Luth
f019943851 tdf#161139: add unit test to sw filters pass
make CppunitTest_sw_filters_test

Change-Id: I6764dfb19ec8af12da44821bf1a55ff300780369
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172051
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2024-08-19 22:40:13 +02:00
Xisco Fauli
9304cfdc83 mariadb-connector-c: Upgrade to 3.3.10
Downloaded from https://mariadb.org/download/?t=connector&p=connector-c&r=3.3.10&os=source&pkg=tar_gz

Change-Id: Id7193af1d21e2641f3e1e097272cbe358eca05df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172053
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-08-19 22:12:11 +02:00
Caolán McNamara
e9899b5c29 fix indent
Change-Id: Ia61f604c65b0eb220b61f6d66c194a96d9e51845
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172049
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-19 20:57:51 +02:00
Caolán McNamara
5c16380a55 GtkBox does not have a child property called left-attach
Change-Id: Ifefc2394747edbbf19601d8bdb9beac418571962
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172048
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-19 20:57:41 +02:00
Mike Kaganski
0b67a633bb Don't fix already correct data
Change-Id: I3e9798507cb9ed04797449e790078e5c2809a1ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171989
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-08-19 20:57:36 +02:00
Caolán McNamara
52ca0dd6cc invalid cast from 'GtkToggleToolButton' to 'GtkToggleButton'
These are toolbar items, and not GtkToggleButton's so use the toolbar
api here instead.

The "ToolbarUnoDispatcher" thing is to auto dispatch uno:whatver when
the toolbar items have names like that, these ones have custom handlers
so that doens't really fit here.

Change-Id: I93fc11bf364ba7ae145ff52bc78a1544c9bae412
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172047
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-19 20:57:29 +02:00
Caolán McNamara
8dc546c049 GtkToolbar does not have a child property called position
Change-Id: I91d2b78ea90c623016540e32ba4b67a8281396f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172046
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-19 20:56:48 +02:00
Armin Le Grand (Collabora)
19cea16244 CairoSDPR: Make PixelSnap better aligned
Change-Id: I64ca3e6bd0690ea14e95f3ed0969c320a45f30d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172043
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2024-08-19 19:51:52 +02:00
Armin Le Grand (Collabora)
fe27013495 CairoSDPR: Text render needs MultiSalLayout support
Change-Id: I418675012392a9707dc515eb1e05a2689ec902aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172039
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2024-08-19 19:51:42 +02:00
Noel Grandin
14599c1313 tdf#158556 only set header flags once
which shaves 5% off the load time.

I suspect this is a copy/paste of the similar logic in
   DomainMapper_Impl::PushPageHeaderFooter
where it says
// Set both sharing left and first to off so we can import the content
regardless tha what value
// the "titlePage" or "evenAndOdd" flags are set (which decide what
the sharing is set to in the document)

I suspect that
    commit 4b0fa253a4
    Author: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
    Date:   Tue Nov 28 13:46:21 2023 +0900
    tdf#136472 adjust ooxml import to handle first header/footer
sufficiently cleaned up the header/footer handling that this is no
longer necessary.

Change-Id: I05145c0f3706bd100dc200a949b9a05a1600d370
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172038
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-08-19 18:10:09 +02:00
Xisco Fauli
cfd5541f9c postgresql: Upgrade to 14.13
Downloaded from https://ftp.postgresql.org/pub/source/v14.13/postgresql-14.13.tar.bz2

Change-Id: I2854bca1ba3ac0a9beda61718d3a2e2002a2815c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172035
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-08-19 17:56:43 +02:00
Pierre F
86e8ccaaab Update git submodules
* Update helpcontent2 from branch 'master'
  to 258bcb03c8a488b14413b6fb7f8bdd88309d8c69
  - misc. simplify sentences  (Basic Function call)
    
    Change-Id: I9a597897f60642832089973926c67f1ac69ed55d
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/171780
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-08-19 17:16:02 +02:00
Pierre F
5feed5bd97 Update git submodules
* Update helpcontent2 from branch 'master'
  to 76c9502e7138e55ec47073c721ede98fc3d65229
  - add image to record change list. tdf#144206
    
    Change-Id: I5940dc8453b8e2a66b5065ed27ec4a321b996679
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/171782
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-08-19 16:47:23 +02:00
Olivier Hallot
d4deae62e4 Update git submodules
* Update helpcontent2 from branch 'master'
  to 848fec1e61c6a592ba91fbf4cfe2bce6cdb57476
  - tdf#150760 Fix Bad link for Base Table Row height
    
    + Removed obsolete HID numbers
    + Fixed Column Width menu commands
    + Add switch for CALC/BASE differences
    
    Change-Id: I8026155c352c17aa41c7aef5f5b5111e8cf7db2f
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/171969
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-08-19 16:29:13 +02:00
Olivier Hallot
86c0772fee Update git submodules
* Update helpcontent2 from branch 'master'
  to 709b64df4d40a4972dea43511be7faef204e443f
  - Add Help page on Sidebar settings
    
    Note: Some entries are not mapped because it has not help ID.
    
    "reset to default" omitted but can be added depending on
    https://gerrit.libreoffice.org/c/core/+/171906
    
    Change-Id: Ie8754e58deb76e95b2a366e1e7f4d712d3983694
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/171913
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-08-19 16:29:02 +02:00
Olivier Hallot
dcf23ba463 tdf#105131 Remove Restore Defaut from sidebar custom menu
Refer to tdf#105131 comment #13

Change-Id: Ia3b33ed4ab971b6f6dd3c751c5f6e3dc6f30f5da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171906
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-08-19 16:28:31 +02:00
Caolán McNamara
1ff0a84e4a SalLayout::InitFont doesn't do anything
there is a MultiSalLayout::InitFont that overrides it, but only forwards
InitFont to the first child sub SalLayout, which itself then doesn't do
anything.

This is possibly the case since:

commit 6c436ba09c
Date:   Thu Dec 1 03:33:30 2016 +0200

    Kill old Windows layout engines

Change-Id: Ic0d347843257d13ee6d6f695488bd053f5a931fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172040
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-19 16:23:10 +02:00
Ilmari Lauhakangas
30faedfa35 tdf#161347 Harmonise API docs for UserDefinedAttributes a bit
Change-Id: I85ce6e42d292b85ca0a54652dd733b14137afe9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172033
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-08-19 16:02:42 +02:00
Mike Kaganski
a8d677035a Make sure to anti-alias fonts on Windows, when required
GetUseFontAAFromSystem was introduced to make sure that texts in generated
raster file match the requested antialiasing selection, not system display
settings (VCL plugins usually render text according to system settings for
screen display, even when lines are not anti-aliased).  The use case there
was disabling antialiasing,  to produce clear output in tests - see commit
e6538f5bdd tdf#118966 vcl: add a flag to
determine if AA of fonts is used from the system, 2018-07-28.

But the opposite case is also valid:  bitmap file export with antialiasing
must smooth text,  even when system display antialiasing is disabled. This
has hit testTdf162259 on a particular buildbot,  where the output happened
to be black-and-while (see commit 7a08c89b5a
Workaround a non-antialiased output on one of Windows buildbots, 2024-08-17).
The problem turned out to be RDP settings  used to connect that particular
buildbot,  which happened to disable AA.  This basically means that output
of '--convert-to png' would depend on the system where it's called.

This change extends the effect of GetUseFontAAFromSystem to not only force
disabled text AA, when it returns false and line AA is disabled,  but also
force enabled text AA, when it returns false and line AA is enabled.  This
is a Windows-only change. I will change the test to use this in a separate
commit.

Change-Id: I7071f1bdefb77cbb9156dde3f70feb4cf8be73f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172031
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-08-19 16:00:22 +02:00
Caolán McNamara
a4dfd23e44 cid#1557694 COPY_INSTEAD_OF_MOVE
and

cid#1557162 COPY_INSTEAD_OF_MOVE
cid#1556896 COPY_INSTEAD_OF_MOVE
cid#1556893 COPY_INSTEAD_OF_MOVE
cid#1556873 COPY_INSTEAD_OF_MOVE
cid#1556872 COPY_INSTEAD_OF_MOVE
cid#1556789 COPY_INSTEAD_OF_MOVE
cid#1556570 COPY_INSTEAD_OF_MOVE
cid#1556519 COPY_INSTEAD_OF_MOVE
cid#1556516 COPY_INSTEAD_OF_MOVE
cid#1556451 COPY_INSTEAD_OF_MOVE
cid#1556396 COPY_INSTEAD_OF_MOVE
cid#1556237 COPY_INSTEAD_OF_MOVE
cid#1556113 COPY_INSTEAD_OF_MOVE
cid#1556094 COPY_INSTEAD_OF_MOVE
cid#1555991 COPY_INSTEAD_OF_MOVE
cid#1555982 COPY_INSTEAD_OF_MOVE
cid#1555885 COPY_INSTEAD_OF_MOVE
cid#1555702 COPY_INSTEAD_OF_MOVE
cid#1555610 COPY_INSTEAD_OF_MOVE
cid#1555450 COPY_INSTEAD_OF_MOVE
cid#1555327 COPY_INSTEAD_OF_MOVE
cid#1555145 COPY_INSTEAD_OF_MOVE

Change-Id: I38cc1a38e8cb2c33f33e0fc3afd34a0fb39e5ec1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172028
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-19 15:15:54 +02:00
Caolán McNamara
c3d7113cdf cid#1607270 silence Overflowed integer argument
Change-Id: I6238fe6fdf28e876c636ce12022c0458e9548578
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172027
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-19 15:15:46 +02:00
Caolán McNamara
f286afec5f cid#1606552 silence Overflowed constant
Change-Id: Ia93330fa9b6b0fa4ca09a89e57c3dcf55d357383
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172026
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-19 15:15:39 +02:00
Caolán McNamara
d7a20237bd cid#1558041 silence COPY_INSTEAD_OF_MOVE
Change-Id: I176158eb311fa1ae61ba39fd1d810b9faacef1f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172025
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-19 15:15:20 +02:00
Caolán McNamara
8a86dfaf59 cid#1607580 silence Overflowed constant
Change-Id: I61c1728293347aec967a95cdf7a9f40aa52b7aa3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172024
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-19 15:15:13 +02:00
Caolán McNamara
a971a176b4 cid#1616524 COPY_INSTEAD_OF_MOVE
Change-Id: Idb3775f795056ec848b01b666cc258604eda7588
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172023
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-19 15:15:06 +02:00
Caolán McNamara
372060b8a3 pAttr is always dereferenced, use a reference here
Change-Id: I183a522704d0fbe2ba2907e75e8794621e94c178
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172022
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-08-19 15:14:50 +02:00
Caolán McNamara
fe2c7f209b cid#1616525 COPY_INSTEAD_OF_MOVE
Change-Id: I508df311ec1785be11077c1f657be57b84ed8cfa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172021
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-19 15:14:38 +02:00
Mike Kaganski
93c17f16b0 tdf#150461: deselect all when clicking outside of all list items
Change-Id: I72185ccee716825b5e7b1bb7ae6bddb533604f53
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171988
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-08-19 15:03:11 +02:00
Andrea Gelmini
1565181908 Fix typo
Change-Id: I3277386244f3a00c2756525829924870e3a3d2bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172030
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-08-19 08:55:14 +02:00
Andrea Gelmini
a221bc2197 Fix typo
Change-Id: I0c09927dd928281a9a006bd03872b5484d6151ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171963
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-08-19 08:54:50 +02:00
Andrea Gelmini
56c33b87e1 Fix typo
Change-Id: I3fac3dcde5aad559dcbc4c64aeedfd0f6fc1cd6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172029
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-08-19 08:54:22 +02:00
Deepanshu Sharma
85699f54fe tdf#147021 Use std::size() or std::ssize() instead of SAL_N_ELEMENTS()
Change-Id: Ib32452077e625395e29569f56c55c6cb6285d82b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171626
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2024-08-19 08:44:11 +02:00
Arnaud VERSINI
e099249fd1 Remove now useless include in package
Change-Id: I8085fb69a752e69820113cf3074bf5e4e7c942de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172020
Reviewed-by: Arnaud Versini <arnaud.versini@pm.me>
Tested-by: Jenkins
2024-08-19 08:31:13 +02:00
Jaume Pujantell
cd4498d328 tdf#162466 calc: added handling of firstHeaderRow="0" on xlsx files
Calc ignored the firstHeaderRow attibute on xlsx pivot tables causing
it to add an extra row when firstHeaderRow="0". And then changed the
value to "1" on export.

Some xlsx pivot table filter tests have been changed because removing
this extra row changed the position of the values.

Change-Id: I95b722e4f4cc40083c752a045df4ffe37e7159c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171836
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171869
Tested-by: Jenkins
2024-08-18 22:35:50 +02:00
TH Huang
5af8a83351 tdf#154018: Change corners to points for polyline and polygon context strings
Change-Id: Ic6b0835238e463e5c155b01a292a5eed72e446d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171743
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-08-18 19:24:02 +02:00
Stephan Bergmann
e0178cfdba Emscripten: Document how Qt builds its own freetype, but we link against LO's
Change-Id: I6413c64db3d50f163ee9cc4feda395a54aab3cf2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172012
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-08-18 17:43:51 +02:00
Stephan Bergmann
4f41c19a03 Emscripten: Increase the main thread stack size
At least when LO tries to download a document and
UUIInteractionHelper::handleErrorHandlerRequest wants to show a MessageDialog
via Qt, the stack grows relatively large, and gray_convert_glyph
(workdir/UnpackedTarball/freetype/src/smooth/ftgrays.c) alone allocates on the
stack a buffer of size FT_MAX_GRAY_POOL * sizeof(TCell) = 1024 * 16 = 16K, which
causes (silent, due to no -sSTACK_OVERFLOW_CHECK=2) stack overflow.

So (somewhat randomly) double the size of the main thread stack to 128K; but, at
least for now, keep the default value of 64K for other threads (which would
otherwise inherit the explicitly set -sSTACK_SIZE value via the
-sDEFUALT_PTHREAD_STACK_SIZE=0 default).

Change-Id: I96583f4af93c84b15c67f310068c5631fb129d40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172011
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-08-18 17:43:39 +02:00
Stephan Bergmann
3d27d68c21 Drop obsolete comment
...after 6e6451ce96 "Emscripten: Move the Qt event
loop off the JS main thread"

Change-Id: Iea9cb74fa2fc3dd036ee865e1bd8ede93fb33c78
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172010
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-08-18 17:43:14 +02:00
Mike Kaganski
83d1f9c2dd Simplify a bit
Change-Id: I7b927cd3dade5bc73039541c3ec8c72a9de400b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172009
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-08-18 15:29:40 +02:00
Mike Kaganski
2a122f47df Add missing property to com.sun.star.graphic.MediaProperties service
An omission from commit 8484e52675
"tdf#117427 missing API for determining and loading linked graphic",
2018-05-12, that introduced it.

Change-Id: Ibf4c754931f813c5234daa5f7b7c907ed84efdef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172008
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-08-18 15:13:27 +02:00
Stephan Bergmann
50cd19debb Emscripten: Clean up SolarMutex
...before disappearing through the QApplication::exec() hole, or else the
SolarMutex would remain locked forever on the application's main thread.

This requires changing SalInstance::ReleaseYieldMutexAll() to
SalInstance::ReleaseYieldMutex(bool all).  (Further recursive locking of the
SolarMutex via SolarMutexGuard instances that would be present on the call stack
leading up to the call to QApplication::exec() would be released during the
stack unwinding, so just undo the one acquiring done in InitVCL, not all of
them.)

Change-Id: I9ef57abb7da7f840999700e4eaeeefd2da784645
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171956
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-08-18 15:10:00 +02:00