Commit Graph

480528 Commits

Author SHA1 Message Date
4f25551df3 sc: factor out common code in make files
I had to rename some .cxx files to follow the same patterns.
The renaming cause clang-format to be triggered for
those files

CppunitTest_sc_functionlistobj fails with

xindexaccess.cxx:26:Assertion
Test name: sc_apitest::ScFunctionListObj::testGetCount
equality assertion failed
- Expected: 395
- Actual  : 508

if it doesn't use gb_CppunitTest_use_components
Change-Id: I7c929512bbf05293118bc54b343a59c8bbee5538

Change-Id: I21971773f1e2d4bc7a6f33e4c392b20abf8d54de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142387
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-11-07 18:08:21 +01:00
ae372725fe Removed duplicated include
Change-Id: I1b015e76112e5587bf0a349d3034adc6a2118754
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142381
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2022-11-07 17:26:04 +01:00
0d295ee0c3 tdf#151658 sw: accept of row deletions with nested tables
Accepting tracked row deletion didn't delete the table row,
only its row content, if the table row contained cell
starting nested tables.

Extend SwTableBox::IsEmpty() to detect a table cell as empty,
if it contains only a cell starting empty table.

Note: Without change tracking, deleting content of a selected
table cell leaves the cell starting nested table in
the cell, but deleting row removed the row with nested table,
too.

Follow-up to commit 6383362999
"tdf#151657 sw: delete row with nested table in Hide Changes" and
commit c809867f3e
"tdf#150976 sw: fix tracked deletion of row with nested table".

Change-Id: I9c9bc3b97653b63e797e1e9dd545809b77a02c76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142384
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2022-11-07 16:50:32 +01:00
e8d9e0cf6b cid#1516751 Improper use of negative value
Change-Id: Iab7585018d1c172299fdb78a731f92c75bd2af7c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142374
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-07 16:35:01 +01:00
429f3d8e3e tdf#144399 Don't allow editing in r/o mode
Fallout from ea9fff2601

Change-Id: I0c73d13b79389db13bb04046731bdf18b4cf6005
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142382
Tested-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2022-11-07 15:23:22 +01:00
801e6272dc tdf#141684 fix disappearance of icons in Groupedbar and Groupedbar compact UI
Change-Id: I3f0e5edd196420c8c51b19cd1ceee8caba7f7fd9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141612
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2022-11-07 14:45:05 +01:00
cfd49dc149 Fix typos
Change-Id: Ie5df0153446e6af1c717c74dba722ac2aea2b738
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142379
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-11-07 14:33:51 +01:00
deba3bdc70 sw: make fmtmeta.hxx self-contained
sw/inc/fmtmeta.hxx:134:5: error: use of undeclared identifier 'unotools'
    unotools::WeakReference<SwXMeta> m_wXMeta;
    ^

Change-Id: Ia022e96789edcc8b9e589175dc32c6fcea83b119
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142369
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-11-07 14:33:12 +01:00
57777d94ca Fix typo
Change-Id: I60b186f26db8f36ea815161e6b450c16377e537b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142380
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-11-07 14:32:17 +01:00
0a93f33a2e xmloff: write transliteration-spellout only in extended ODF
Follow-up to commit 7c20c3c2a9
"xmloff: ODF export: adapt all checks of ODFSVER_012 etc.".

Reported by Eike Rathke.

See also b7d53247eb
"tdf#115007 i18npool: add NatNum12 formats to locales" and
2a1d2d42af
"tdf#115007 add NatNum12 number format list items, fix title case".

Change-Id: Idb25a37ffcad0a0fb05276b972561abf929cd81b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142373
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2022-11-07 13:53:48 +01:00
24122c2021 tdf#148719 Moving caption frame & undoing is shrinking caption frame
So the problem here is that when we call SwDoc::FindFormatByName we can
have the situation that there are two formats with the same name.

Those formats appear to have which ids
   159   RES_DRAWFRMFMT
   156   RES_FLYFRMFMT

Previously, the index was sorted by
   ... which ... name

which meant that the lower-valued which was always been returned.

After my path, the index is sorted by
   ...name....which

The problem is call path is
   sw/source/core/undo/unattr.cxx:252 in SwUndoFormatAttr::GetFormat
where it calls
   rDoc.GetSpzFrameFormats()->FindFormatByName()

To fix it, use the findByTypeAndName method to explicitly specify which
which-id we are interested in.

Change-Id: I8941f7c277785afb1940bcf5d2b5153c291b6f97
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142371
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-11-07 13:52:48 +01:00
548bb942ca tdf#151061 Fix string inconsistencies in privateuserpage.ui
This patch fixes string inconsistencies pointed out by translators in the bug report.

Change-Id: I6d053f0aa9d6c45477598f8f5903cf0fc40f69f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140168
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2022-11-07 13:38:58 +01:00
de387e611d tdf#147386 Fix text color in CSV import dialog (dark mode)
If FONTCOLOR is set to Automatic, then check the background color and adjust the font color to Black or White depending whether the background is dark.

Change-Id: I3c277291f8aa3a3e63a050c28c8f17b05f4dbf2e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141177
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2022-11-07 13:16:24 +01:00
628efead20 Revert recalcuting m_nTextCol when setting a cell editable
Revert: "vcl: allow editing a column other than the first one in GtkInstanceTreeView"

This reverts commit be11a3573a.

both basctl watchwindow and writer insert bookmark work as expected
without this.

.git/COMMIT_EDITMSG.save

Revert "vcl: allow editing a column other than the first one in GtkInstanceTreeView"

This reverts commit be11a3573a.

Change-Id: I3384164ef5634b6695cc7edad7c03a3242195003
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142366
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-07 12:37:01 +01:00
aa5e2b24eb tdf#141908 - CppUnittests: replace usage of sal_Int32 with colors
Change-Id: Icdf2a5e7c0bd738f2cffbc0b7e99b1bd90a6dcce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141685
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2022-11-07 09:58:04 +01:00
503195ad4d file: Use calloc
Current code does, malloc->memset,  that's what calloc is for.

Change-Id: Ie3a4872249f78442b96f98c9dad9d7170afe784c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142345
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-11-07 09:11:30 +01:00
0d9613b77f TempFile: clear handle on close
If we close the file on error, then clear the handle we returned to
the caller so it doesn't try and close it again or do anything else
with it.

Change-Id: Idd054f92f4f3cbc3427896ec9795e588471292d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142344
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-11-07 09:11:04 +01:00
fa40ea19db TempFile: Initialise handle
If the tempfile creation fails, the handle is left uninitialised
but we still try and close it, and we explode with various
pthread locking corruptions.

I think this could be the cause of a bunch of the:
https://crashreport.libreoffice.org/stats/signature/osl_closeFile

I can trigger it on Linux by setting TMPDIR to a bogus value,
but I don't think that's all the cases that we see in the crash reports.

Initialising it to null makes the close take a safe path.

Change-Id: If66c5629b6bce62e6c4b18a97ecb901abedd4ea3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142343
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-11-07 09:09:14 +01:00
f18ef67d7c sw: prefix members of SwCaptionDialog, SwColumnPage, SwFrameAddPage and ...
... SwGrfExtPage

See tdf#94879 for motivation.

Change-Id: I9ac362d2399db4ec92816bb4e34e4c2740b16eec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142365
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-11-07 08:53:20 +01:00
c3549e7857 tdf#151605 Don't include hidden text by default in HTML filter
Exclude hidden text from HTML filter (and add an option to change the behavior).

Change-Id: I232fda1a283090229b8716532c646bcc6824a7f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141606
Tested-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2022-11-07 08:32:05 +01:00
acf7a851e8 Revert "tdf#145538 Use range based for loops"
This reverts commit 64469bb1a7.

To keep the compatibility with C++98, we need to revert the previous patch.

Quoting sberg:
"This code happens to not normally be processed (see ure/source/uretest/README)
and is meant to be compilable with the 3rd-party UNO compiler baselines (i.e.,
just C++98, which implies no range base for loops)."

Change-Id: I1355a29af24299a99a23dfcd1dd473894d7c9e0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142302
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2022-11-07 08:20:46 +01:00
08bb758b15 Adapt to llvm-config --src-root dropped from LLVM 16 trunk
...with
<c061892fcd>
"[llvm-config] Remove --src-root option", causing

> checking for llvm-config... .../llvm-config
> usage: llvm-config <OPTION>... [<COMPONENT>...]
[...]
> dirname: missing operand
> Try 'dirname --help' for more information.

noise during configure

Change-Id: I0051dd523a3f4cebfdd8b14d8f2e83ba9e5e959b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142362
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-11-07 08:15:36 +01:00
b60705c95b SdNavigator: Make the page objects tree stand still when the entry
selected is already visible (affects tdf#138868 and tdf#129610)

This patch replaces the use of TreeView::scroll_to_row with
TreeView::set_cursor in SdPageObjsTLV::SelectEntry because the GtkInst
scroll_to_row always scrolls the entry to the top, when possible, even
if the entry is already in the visible entries range. SalInst only
scrolls the entry to the top when it is not in the visible range.
Commit 3c8e81669f 'tdf#149279 related:
make gtk treeview scroll_to_row more sal like' made the gtk behavior
similiar to the sal behavior.

Change-Id: I95aa3555699eb8c8d88bb00ca39d7c3a6589353a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142363
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2022-11-07 07:17:52 +01:00
75395e0cca Use o3tl::convert instead of temporary Fractions
Change-Id: I7e1f68e579e6520d17e0a058e6e0a8056e082c2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142360
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-11-07 06:03:48 +01:00
6bc0576f81 tdf#151608: Follow up comments
added comment about when the informListenerDestroyed method is called.

Which was requested to be done in the following change review: https://gerrit.libreoffice.org/c/core/+/141468

Change-Id: I34558a5c673ff0e392b91a620b9effc00a8b1376
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142086
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-11-07 05:30:53 +01:00
c3d2c5056a No point in abbreviating like that in the middle of the sentence
Change-Id: Id2144df2d5a714acc0a1022dccd802ec0a89a559
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142364
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-11-07 05:26:28 +01:00
09cd68a0a7 Update git submodules
* Update dictionaries from branch 'master'
  to 2ee18117fc1d481e7cc58ebf0d498d761357be82
  - Fix typos in Thesaurus
    
    Change-Id: Id54a4f32468d525e96b66b9d5cd8de9313cb64c7
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/136876
    Tested-by: Aron Budea <aron.budea@collabora.com>
    Reviewed-by: Aron Budea <aron.budea@collabora.com>
2022-11-07 03:31:32 +01:00
d23adc80fa Update git submodules
* Update helpcontent2 from branch 'master'
  to b310c2a8fb3c21429a755b318a1b4be31a5496d0
  - tdf#149991 Replace Page with Page Style
    
    Change-Id: I4d7a5178180aa49ca16c569b1c2a90bd248bedc5
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/142299
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-11-07 01:53:03 +01:00
ad8b0ed7c0 Update git submodules
* Update helpcontent2 from branch 'master'
  to 3568ffd245094b1ee98eab3cb2e0be18646a7aa5
  - tdf141474 Typename, Vartype functions accept keyword arguments
    
    - argument names updated to comply with VBA conventions
    
    Change-Id: I2166e62d6df4e0f72aaa494e96f9a515b03e3ac7
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/141919
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-11-07 01:13:41 +01:00
07d303b741 Match conditionals in dictionaries/Module_dictionaries.mk
Change-Id: Ia80af0e949c160718cf815630d383bf7c36e5b00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142071
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2022-11-07 00:02:57 +01:00
a807a1222f ofz#46864 Stack-overflow
an artifact of the fuzzing mode itself from ofz#3004 Timeout rather than
a real world issue, undo that

Change-Id: I2a31b8fe62e5b5a3cf90d8bb22f84e473026d161
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142361
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-06 21:57:18 +01:00
1a47dff65b ofz#51431 Timeout
Change-Id: Ibcaefe2f12d2cad41eb8c7e6cd2924cf2c0c8e3d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142353
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-06 20:19:12 +01:00
6d1118245f Update git submodules
* Update helpcontent2 from branch 'master'
  to 4f1d8245e409f5df7ca88c83a573cb07f181d0a5
  - tdf#126574 Macro security high level description
    
    Change-Id: I20dd1a567dbea2a2ef364dfa8de52d6f21178f3a
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/142298
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-11-06 18:41:59 +01:00
26edb7447e ofz#52723 Out-of-memory
Change-Id: Id563d2d7629c88d443360ec6a1086b1079f7f48b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142356
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-06 17:56:46 +01:00
45de27c2c8 Update git submodules
* Update helpcontent2 from branch 'master'
  to c337f9b3a91c47180ae479f9e847d55f0847e7f0
  - tdf#147862 Writer toolbars help page overview improvement
    
    Change-Id: I7e17eda019a92c1b1b0ed783b3f4b0bd1d2c2b64
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/142358
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-11-06 17:46:23 +01:00
26511a8961 ScriptForge - (SF_Datasheet) Filter, OrderBy properties
For homogeneity with the Form service,
the
  ApplyFilter()
  OrderBy()
methods are replaced by the
  Filter
  OrderBy
updatable properties respectively.

Functionally there is no change.

This substitution is valid both for Basic and
Python user scripts.

Change-Id: I63a1d5c4554437b6a2cd634677e6eee246cb59ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142355
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
2022-11-06 17:37:10 +01:00
9d42a2c29d sync mscrypt impl with nss impl
Change-Id: I4960f4b8fa1124f98ee2004ffcfc0994916c297e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142335
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-06 17:36:47 +01:00
35eaff1ad0 vcl: cleanup CoreTextFontFace() a bit
Change-Id: Idcef772802636efab7e7b92415a6d31fec0ba979
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142348
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
2022-11-06 16:53:08 +01:00
3792b1b770 Update git submodules
* Update helpcontent2 from branch 'master'
  to 37a143c8e41209ae1836215e83313250de5a2fb4
  - Fix missing link and refactr
    
    Option "printeroptions" no more available
    
    Change-Id: I4aa67acaf2c24db196b14904e781679425bf8baa
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/142314
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-11-06 16:15:01 +01:00
f3133b803b Document that .clang-format would benefit from StatementMacros
(see the commit message of 4280a32579
"-Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): tools" about the
recent need of some "clang-format off" in tools/source/misc/json_writer.cxx), in
case we would ever bump our clang-format version

Change-Id: I4ee9385f84db415903790332c81161c5dbc7614f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142350
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-11-06 15:38:07 +01:00
64f42fe944 ofz#52490 Timeout
Change-Id: I0aa462bea2975e6532dc3cd4b2f088d5dde8852f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142352
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-06 14:15:25 +01:00
b53a0e3dc2 ofz: bump sc-rtf and html max lengths
Change-Id: I5a9f8ec669a211898989e5f4f7a11c4c33a8a665
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142351
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-06 14:15:08 +01:00
9ea9d3ccc0 sdext.pdfimport Writer: Do not visit DrawElement twice in WriterXmlEmitter
Discovered when working on commit f6004e1c45.

To reproduce, you can print the content of aOutput2 above the line:
https://opengrok.libreoffice.org/xref/core/sdext/source/pdfimport/test/tests.cxx?r=f6004e1c#836,
and then you get the xml content as shown in:
https://bugs.documentfoundation.org/attachment.cgi?id=183217,
in which you can see that there are duplicated draw:frame(s) with identical draw:z-index.

To dig into the problem, you may take a look at the following code block:

1    for( const auto& rxChild : elem.Children )
2    {
3        PageElement* pPage = dynamic_cast<PageElement*>(rxChild.get());
4        if( pPage )
5        {
6            for( auto child_it = pPage->Children.begin(); child_it != pPage->Children.end(); ++child_it )
7            {
8                if( dynamic_cast<DrawElement*>(child_it->get()) != nullptr )
9                    (*child_it)->visitedBy( *this, child_it );
10           }
11       }
12   }
13
14   for( auto it = elem.Children.begin(); it != elem.Children.end(); ++it )
15   {
16       if( dynamic_cast<DrawElement*>(it->get()) != nullptr )
17           (*it)->visitedBy( *this, it );
18   }

In the for loop in lines 1:12:
* "elem" is a "DocumentElement" which is derived from "Element". It's childen are PageElement(s).
* "pPage" is a "PageElement" which is also derived from "Element". It's childen are DrawElement(s).
* "child_it", as in the for loop in lines 6:10, is a "DrawElement" which is derived from
"GraphicalElement", whereas "GraphicalElement" is derived from "Element".
In this block, the code goes through each of the pages and visit the DrawElements there.

The code in lines 14:18 seems to assume that, a DrawElement, in addition to be a child of
PageElement, may also be a child of DocumentElement. See the comment in souce code.
Yes, it may be. For such DrawElement(s), the visiting is done in lines 14:18 separately.

Note that The above code uses dynamic_cast to determine whether a node is a DrawElement or not.

The problem is that, in determining whether the node during the 2nd visiting is a DrawElement,
it accidently used "== nullptr". This may be an inadvertent error. If the dynamic_cast is a nullprt,
then it is not a DrawElement and the visiting should not be done there.

Resolve this by using "!= nullptr" in the second dynamic_cast checking.

Change-Id: I066100e98039d505d8b10c390954e014b78cff4f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141680
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-11-06 12:43:07 +01:00
7351bf23f5 ofz#52685 Timeout
only allow a short read after reading the preamble of the tiff

Change-Id: Idd4b8892457566daa028c68125fe3beeb7499803
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142346
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-06 12:29:18 +01:00
1b2fa783af -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): xmlsecurity
Change-Id: I58b01510fd41256660f703a3b62901fe286ffb93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142337
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-11-06 11:57:25 +01:00
a28f89581c Remove double functionality
There was processorfromoutputdevice.cxx|hxx containing
createBaseProcessor2DFromOutputDevice that does exactly
the same thing as createProcessor2DFromOutputDevice in
processor2dtools.cxx|hxx, so I removed one onf them
to make handling of future changes easier.

Change-Id: Id8d49d1572a1bc39f1d330a742d4697c8c030e75
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142320
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2022-11-06 11:57:01 +01:00
64469bb1a7 tdf#145538 Use range based for loops
Change-Id: Ic27ef946b8b878770446bd975b836d7c6c29dd4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141668
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2022-11-06 01:25:32 +01:00
04a58d7eae tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro
Also change some range based for.

Change-Id: I32c5cbe0033c40cde3f1fc86ec8af90e558f2652
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141666
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2022-11-06 01:22:27 +01:00
804f21e42b loplugin:unusedvariablecheck
apparently a leftover from 643fec7cf7 "vcl: add
PhysicalFontFace::GetVariations()"

Change-Id: I78141d5de4c3f63096552eb25b70da3e5de36df9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142284
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-11-06 01:15:35 +01:00
ccce14bcce -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): desktop
Change-Id: I438acf8e63a5d855bb19daee07af0f92b4b609a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142323
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-11-06 01:15:04 +01:00