423503 Commits

Author SHA1 Message Date
Noel Grandin
5c6c6ebd12 Revert "vcl: StartPresentationMode should be using a sal_uInt32.."
This reverts commit 9321c560943330fbc76dacfebff67bd740fbc95b.

This is just plain wrong. Both the call sites and the function that this
method in turn calls want to use sal_Int32. It doesn't seem to cause any
actual problems, but that's probably just lucky.

Change-Id: Id77867094b9c7c209edd8b575c9203aee6515ff3
Reviewed-on: https://gerrit.libreoffice.org/54691
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-05-23 11:48:37 +02:00
Rene Engelhard
51e92859c9 rename config_extension_update.h.in to config_extensions.h.in
... and move HAVE_FEATURE_EXTENSIONS there, too

Change-Id: I37fe52071e1db32cf5cc1e51dbd89bb4f32a39c1
Reviewed-on: https://gerrit.libreoffice.org/54072
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Rene Engelhard <rene@debian.org>
2018-05-23 11:44:57 +02:00
Mike Kaganski
5c2c5ff01c tdf#115386: Show Mail Merge toolbar for documents with MM fields
Change-Id: I357a30d72c5ac4af8c64b82b4cc61c3bd606940a
Reviewed-on: https://gerrit.libreoffice.org/54612
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-05-23 11:38:50 +02:00
Luboš Luňák
1464b94ab8 extend mutex protection to the whole of ScEditUtil::GetString()
Otherwise with Calc's threading enabled and novell#306440-1.xlsx
this function gets called multiple times at the same time and
the SetText() calls operate on the same object.

Change-Id: Ic044132ac98bed46440aadbdad6ad36f3a2e9beb
Reviewed-on: https://gerrit.libreoffice.org/54520
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2018-05-23 11:35:12 +02:00
Caolán McNamara
539d939cbd ofz#8473 Null-dereference READ
Change-Id: Id6578d180fec3738be127993f02aaf45af915688
Reviewed-on: https://gerrit.libreoffice.org/54682
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-05-23 09:59:15 +02:00
Gabor Kelemen
9b2136fb71 find-unneeded-includes: Make the output user friendlier
This way it's easy to copy-paste the problematic command
for further investigation of IWYUs proposals

Change-Id: I9e7403f0f05e64e562441941f00127a62bf15265
Reviewed-on: https://gerrit.libreoffice.org/54560
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-05-23 09:26:24 +02:00
Miklos Vajna
5956828c88 tdf#117505 RTF export: fix incorrect header distance for first/follow pages
In case the first and the follow page format has different header
distances, the DOC and DOCX import work with the distance from the first
page format when they take the last item from the MSWordSections
container at the end of the export.

RTF writes section info before the document content, and in case there
are separate first and follow page formats, then we work with the follow
format since commit 20a53cb9e9c7b797c091fe6ac6a34dfb28c61304
(INTEGRATION: CWS limerickfilterteam08 (1.16.32); FILE MERGED,
2003-09-01) as a fix for i#13107.

There is no perfect solution here, the sw doc model can store different
header distances for first and follow pages, while Word works with a
single distance. But RTF/DOCX/DOC import puts the relevant header
distance to the first page format and DOCX/DOC export reads the distance
from there, so be consistent and do the same in the RTF export as well.

This means the DOCX import -> RTF export -> RTF import sequence from the
bugreport will result in a correct header distance.

Change-Id: I3f1fe3080360702c41d680b8785cc3602e74685e
Reviewed-on: https://gerrit.libreoffice.org/54680
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-05-23 09:12:06 +02:00
Andrea Gelmini
4552096794 Fix typo
Change-Id: Ic7a5cceb30c3301c05d1ec241ec7afb86af035d7
Reviewed-on: https://gerrit.libreoffice.org/54667
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-05-23 07:02:42 +02:00
Andrea Gelmini
2985319ebd Fix typos
Change-Id: Ibe94c7379a9389a0506c33666bf2bfb033f96f08
Reviewed-on: https://gerrit.libreoffice.org/54670
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2018-05-23 06:52:55 +02:00
Andras Timar
8fae8a6cd7 Updated core
Project: translations  70836fdf7467a34f5a5ac03c576e9ebe535f5cde

Updated Slovenian translation

Change-Id: Ie07dce5eb9058d91cdf5f835da6bb24b01641841
2018-05-22 23:28:49 +02:00
Caolán McNamara
7dd83ed395 ofz#8442 Integer-overflow
Change-Id: I8d09ce583abac38420646b60b83f56e02eb48cab
Reviewed-on: https://gerrit.libreoffice.org/54656
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-05-22 22:32:07 +02:00
László Németh
5dda47154c Updated core
Project: dictionaries  e90e83b23b6ace35349fc2b3e65bd2d69c80ddd8

Hungarian dictionary v1.7

Extend Hungarian dictionary with boundary data for compound words
and for disambiguation of digraphs to fix incomplete and bad
Hungarian collate, sorting and hyphenation rules in the future.

Other minor fixes (*idegenszó -> idegen szó, *periférikus etc.)

Change-Id: I3278801ac875f2d33fd5dc62efc43a9a81194734
Reviewed-on: https://gerrit.libreoffice.org/54480
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
2018-05-22 22:26:59 +02:00
László Németh
7b6c5e3219 tdf#117171 support localized sequence numbering styles
for example, illustration and table numbering in ordinal
and cardinal number names and ordinal indicators.

Change-Id: I1911d40aba1b18230a49b2e968af2753d1eeb6f3
Reviewed-on: https://gerrit.libreoffice.org/54672
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2018-05-22 21:14:12 +02:00
Andrea Gelmini
ba9b525ec1 Fix typos
Change-Id: I5ad14286712e27e8d15174c9ed420bf93367d041
Reviewed-on: https://gerrit.libreoffice.org/54579
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins <ci@libreoffice.org>
2018-05-22 21:02:51 +02:00
Tor Lillqvist
e1544f8785 Bin noise comments
Change-Id: I2110cdfd37e9867bf5aab059a878fa85ef66fdc4
2018-05-22 21:03:19 +03:00
Miklos Vajna
4c2172a3e9 tdf#106702 PDF export: fix missing images from Writer headers/footers
Position of an image is determined by the relevant bitmap scale metafile
action when recompressing images.

The same position was determined by PDFExtOutDevData "meta" info when
not recompressing images. This second rectangle was never correct for
images repeated in Writer headers/footers on non-first pages: the
position was relative to the page, while PDF export sets the map mode
(origin) of the output device during export, so such positions are
expected to be absolute ones.

The root of the problem seems to be that header images in Writer are
both repeated (as the user sees it) and unrepeated (as the doc model
sees it), and by the time we want to get its position, we only see the
unrepeated SdrObject.

Fix the problem by using the correct position from the scale action and
not from PDFExtOutDevData if possible.

(Also give up on running CppunitTest_vcl_pdfexport in the non-pdfium
case, most of the tests there do require pdfium anyway, and the growing
ifdef forest in that file just made it hard to read the code.)

Change-Id: I31c14d4bd223b2804859982542ebd6d5f9abd312
Reviewed-on: https://gerrit.libreoffice.org/54674
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2018-05-22 19:30:25 +02:00
Khaled Hosny
2c1fb32e0b Use vector in BreakIterator_th instead of C arrays
Change-Id: Ie93920bccfe5444e0066f8df85b4a9d2ff060a2d
Reviewed-on: https://gerrit.libreoffice.org/54650
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Eike Rathke <erack@redhat.com>
2018-05-22 19:29:27 +02:00
Khaled Hosny
98908d79a4 Fold BreakIterator_CTL into BreakIterator_th
The split is pointless and misleading, there are no other subclasses of
BreakIterator_CTL.

Change-Id: I66e66834e6e064cea29f543434a35682ee7cd35d
Reviewed-on: https://gerrit.libreoffice.org/54638
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2018-05-22 19:25:01 +02:00
Andrea Gelmini
6924586821 Fix typos
Change-Id: Idbe136fbfd222e8baad588dc36a2f9b7ce6996ec
Reviewed-on: https://gerrit.libreoffice.org/54590
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins <ci@libreoffice.org>
2018-05-22 18:39:39 +02:00
Tor Lillqvist
c7736a6803 Bin pointless variable
Change-Id: I6b402b124966ee6a1694839a54e79fd176270d0f
2018-05-22 18:17:45 +03:00
Tor Lillqvist
e439816281 Open template read-only
Otherwise when creating a new docuent based on a template, the
template document file is opened read-write eventually (after first
being opened read-only five times, and closed again...). Sure,
LibreOffice probably doesn't actually write anything to it, but still,
just opening read-write when you are going to only read is silly.

Stack trace from the read-write opening:

 #0  0x00007f063dea0047 in openFilePath(char const*, void**, unsigned int, unsigned int) (cpFilePath=0x7ffeacc7d610 "/ssd1/lo/fedora/instdir/share/template/common/officorr/Modern_business_letter_sans_serif.ott", pHandle=0x342af78, uFlags=3, mode=438)
    at /ssd1/lo/fedora/sal/osl/unx/file.cxx:1039
 #1  0x00007f063dea027b in openFile(_rtl_uString*, void**, unsigned int, unsigned int) (ustrFileURL=0x33ff7e0, pHandle=0x342af78, uFlags=3, mode=4294967295) at /ssd1/lo/fedora/sal/osl/unx/file.cxx:1071
 #2  0x00007f063dea01a8 in osl_openFile(rtl_uString*, oslFileHandle*, sal_uInt32) (ustrFileURL=0x33ff7e0, pHandle=0x342af78, uFlags=3)
    at /ssd1/lo/fedora/sal/osl/unx/file.cxx:1050
 #3  0x00007f060aec5f1a in osl::File::open(unsigned int) (this=0x342af78, uFlags=3) at /ssd1/lo/fedora/include/osl/file.hxx:975
 #4  0x00007f060aec5a8f in fileaccess::ReconnectingFile::open(unsigned int) (this=0x342af78, uFlags=3)
    at /ssd1/lo/fedora/ucb/source/ucp/file/filrec.cxx:50
 #5  0x00007f060aee0324 in fileaccess::XStream_impl::XStream_impl(rtl::OUString const&, bool) (this=0x342af10, aUncPath="file:///ssd1/lo/fedora/instdir/share/template/common/officorr/Modern_business_letter_sans_serif.ott", bLock=true) at /ssd1/lo/fedora/ucb/source/ucp/file/filstr.cxx:58
 #6  0x00007f060aee8bac in fileaccess::TaskManager::open_rw(int, rtl::OUString const&, bool) (this=0x2c5ded0, CommandId=231, aUnqPath="file:///ssd1/lo/fedora/instdir/share/template/common/officorr/Modern_business_letter_sans_serif.ott", bLock=true)
    at /ssd1/lo/fedora/ucb/source/ucp/file/filtask.cxx:766
 #7  0x00007f060ae9ba9b in fileaccess::BaseContent::open(int, com::sun::ucb::OpenCommandArgument2 const&) (this=0x3428810, nMyCommandIdentifier=231, aCommandArgument=...) at /ssd1/lo/fedora/ucb/source/ucp/file/bc.cxx:937
 #8  0x00007f060ae99dfa in fileaccess::BaseContent::execute(com::sun::ucb::Command const&, int, com::sun::uno::Reference<com::sun::ucb::XCommandEnvironment> const&) (this=0x3428810, aCommand=..., CommandId=231, Environment=uno::Reference to (ucbhelper::CommandEnvironment *) 0x341d088) at /ssd1/lo/fedora/ucb/source/ucp/file/bc.cxx:331
 #9  0x00007f060ae9d001 in non-virtual thunk to fileaccess::BaseContent::execute(com::sun::ucb::Command const&, int, com::sun::uno::Reference<com::sun::ucb::XCommandEnvironment> const&) () at /ssd1/lo/fedora/instdir/program/../program/libucpfile1.so
 #10 0x00007f06337395da in ucbhelper::Content_Impl::executeCommand(com::sun::ucb::Command const&) (this=0x3427f70, rCommand=...)
    at /ssd1/lo/fedora/ucbhelper/source/client/content.cxx:1258
 #11 0x00007f063373be55 in ucbhelper::Content::openWriteableStream() (this=0x7ffeacc7f030)
    at /ssd1/lo/fedora/ucbhelper/source/client/content.cxx:751
 #12 0x00007f06333f56c0 in utl::MediaDescriptor::impl_openStreamWithURL(rtl::OUString const&, bool) (this=0x7ffeacc801d0, sURL="file:///ssd1/lo/fedora/instdir/share/template/common/officorr/Modern_business_letter_sans_serif.ott", bLockFile=true)
    at /ssd1/lo/fedora/unotools/source/misc/mediadescriptor.cxx:666
 #13 0x00007f06333f3e01 in utl::MediaDescriptor::impl_addInputStream(bool) (this=0x7ffeacc801d0, bLockFile=true)
    at /ssd1/lo/fedora/unotools/source/misc/mediadescriptor.cxx:521
 #14 0x00007f06333f4051 in utl::MediaDescriptor::addInputStreamOwnLock() (this=0x7ffeacc801d0)
    at /ssd1/lo/fedora/unotools/source/misc/mediadescriptor.cxx:490
 #15 0x00007f05b132f0bf in filter::config::TypeDetection::impl_openStream(utl::MediaDescriptor&) (this=0x33caa10, rDescriptor=...)
    at /ssd1/lo/fedora/filter/source/config/cache/typedetection.cxx:1127
 #16 0x00007f05b132e9ac in filter::config::TypeDetection::impl_askDetectService(rtl::OUString const&, utl::MediaDescriptor&) (this=0x33caa10, sDetectService="com.sun.star.comp.filters.StorageFilterDetect", rDescriptor=...) at /ssd1/lo/fedora/filter/source/config/cache/typedetection.cxx:981
 #17 0x00007f05b132b7a4 in filter::config::TypeDetection::impl_detectTypeFlatAndDeep(utl::MediaDescriptor&, std::__debug::vector<filter::config::FlatDetectionInfo, std::allocator<filter::config::FlatDetectionInfo> > const&, bool, std::__debug::vector<rtl::OUString, std::allocator<rtl::OUString> >&, rtl::OUString&) (this=0x33caa10, rDescriptor=..., lFlatTypes=std::__debug::vector of length 168, capacity 256 = {...}, bAllowDeep=true, rUsedDetectors=std::__debug::vector of length 1, capacity 1 = {...}, rLastChance="")
    at /ssd1/lo/fedora/filter/source/config/cache/typedetection.cxx:934
 #18 0x00007f05b1329b7c in filter::config::TypeDetection::queryTypeByDescriptor(com::sun::uno::Sequence<com::sun:🫘:PropertyValue>&, unsigned char) (this=0x33caa10, lDescriptor=uno::Sequence of length 6 = {...}, bAllowDeep=1 '\001')
    at /ssd1/lo/fedora/filter/source/config/cache/typedetection.cxx:429
 #19 0x00007f05b132d321 in non-virtual thunk to filter::config::TypeDetection::queryTypeByDescriptor(com::sun::uno::Sequence<com::sun:🫘:PropertyValue>&, unsigned char) () at /usr/bin/../lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/bits/stl_pair.h:331
 #20 0x00007f060df5acdd in framework::LoadEnv::impl_detectTypeAndFilter() (this=0x7ffeacc80c48)
    at /ssd1/lo/fedora/framework/source/loadenv/loadenv.cxx:739
 #21 0x00007f060df58796 in framework::LoadEnv::startLoading() (this=0x7ffeacc80c48) at /ssd1/lo/fedora/framework/source/loadenv/loadenv.cxx:357
 #22 0x00007f060df57280 in framework::LoadEnv::loadComponentFromURL(com::sun::uno::Reference<com::sun::frame::XComponentLoader> const&, com::sun::uno::Reference<com::sun::uno::XComponentContext> const&, rtl::OUString const&, rtl::OUString const&, int, com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&) (xLoader=uno::Reference to (framework::Desktop *) 0x282bf98, xContext=uno::Reference to (cppu::ComponentContext *) 0x145b790, sURL="file:///ssd1/lo/fedora/instdir/share/template/common/officorr/Modern_business_letter_sans_serif.ott", sTarget="_default", nFlags=0, lArgs=uno::Sequence of length 4 = {...}) at /ssd1/lo/fedora/framework/source/loadenv/loadenv.cxx:160
 #23 0x00007f060dfaef40 in framework::Desktop::loadComponentFromURL(rtl::OUString const&, rtl::OUString const&, int, com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&) (this=0x282bf20, sURL="file:///ssd1/lo/fedora/instdir/share/template/common/officorr/Modern_business_letter_sans_serif.ott", sTargetFrameName="_default", nSearchFlags=0, lArguments=uno::Sequence of length 4 = {...})
    at /ssd1/lo/fedora/framework/source/services/desktop.cxx:617
 #24 0x00007f060dfaeffb in non-virtual thunk to framework::Desktop::loadComponentFromURL(rtl::OUString const&, rtl::OUString const&, int, com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&) () at /ssd1/lo/fedora/include/rtl/stringutils.hxx:170
 #25 0x00007f06381ee762 in SfxTemplateManagerDlg::OpenTemplateHdl(ThumbnailViewItem*) (this=0x310e160, pItem=0x33925d0)
    at /ssd1/lo/fedora/sfx2/source/doc/templatedlg.cxx:690

Change-Id: Iaa5cc2bd4c80bc239b8f1bf7ed8aa62d89151d62
2018-05-22 18:17:45 +03:00
Stephan Bergmann
11e968c0db Conditional jump or move depends on uninitialised value
Regression introduced with f7a011c45b0b88cb3c3ea9206cb851375266523d
"loplugin:unusedfields in sc" e.g. during `VALGRIND=memcheck make
CppunitTest_sc_subsequent_export_test
CPPUNIT_TEST_NAME=ScExportTest::testTrackChangesSimpleXLSX`:

> ==16928== Conditional jump or move depends on uninitialised value(s)
> ==16928==    at 0x3C72975F: lcl_GenerateGUID(unsigned char*, bool&) (/sc/source/filter/xcl97/XclExpChangeTrack.cxx:87)
> ==16928==    by 0x3C731303: XclExpChangeTrack::XclExpChangeTrack(XclExpRoot const&) (/sc/source/filter/xcl97/XclExpChangeTrack.cxx:1470)
> ==16928==    by 0x3C18B6B1: ExcDocument::ReadDoc() (/sc/source/filter/excel/excdoc.cxx:788)
> ==16928==    by 0x3C1FC902: ExportBiff5::Write() (/sc/source/filter/excel/expop2.cxx:112)
> ==16928==    by 0x3C1A1506: lcl_ExportExcelBiff(SfxMedium&, ScDocument*, SvStream*, bool, unsigned short) (/sc/source/filter/excel/excel.cxx:181)
> ==16928==    by 0x3C1A1044: ScFormatFilterPluginImpl::ScExportExcel5(SfxMedium&, ScDocument*, ExportFormatExcel, unsigned short) (/sc/source/filter/excel/excel.cxx:219)
> ==16928==    by 0x2D947526: ScDocShell::ConvertTo(SfxMedium&) (/sc/source/ui/docshell/docsh.cxx:2325)
> ==16928==    by 0x2FA06539: SfxObjectShell::SaveTo_Impl(SfxMedium&, SfxItemSet const*) (/sfx2/source/doc/objstor.cxx:1510)
> ==16928==    by 0x2FA0A91D: SfxObjectShell::DoSaveAs(SfxMedium&) (/sfx2/source/doc/objstor.cxx:1897)
> ==16928==    by 0x2EFD30D7: ScBootstrapFixture::saveAndReload(ScDocShell*, rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, SfxFilterFlags) (/sc/qa/unit/helper/qahelper.cxx:664)
> ==16928==    by 0x2EFD381D: ScBootstrapFixture::saveAndReload(ScDocShell*, int) (/sc/qa/unit/helper/qahelper.cxx:686)
> ==16928==    by 0x29A6ADEA: ScExportTest::testTrackChangesSimpleXLSX() (/sc/qa/unit/subsequent_export-test.cxx:2615)

Change-Id: I08f6a8e4a3827440f8b908791555e4b2226be12d
2018-05-22 16:53:24 +02:00
Zdeněk Crhonek
3a45af9796 uitest for bug tdf89958
Change-Id: I174c4c641d992e78056003fc8f4b9a24ea1c1b93
Reviewed-on: https://gerrit.libreoffice.org/54639
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2018-05-22 16:18:21 +02:00
Andras Timar
792e0d29f5 Updated core
Project: translations  48ec26fb5d74b043b3da3add0dc4e03a2c2ca84a

Updated Slovenian translation

Change-Id: I076d96ddbcc7ee5f844c0a9b2819fae32e1094ed
2018-05-22 15:48:01 +02:00
Andrea Gelmini
21fd1bf5c2 Updated core
Project: help  ac3b3c4e5f94f4f942121833d08bcffd847a291c

Fix typo

Change-Id: Ia45bf9497ad9f8d761c14bbbe0b570a01d9883f6
Reviewed-on: https://gerrit.libreoffice.org/54668
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-05-22 15:42:46 +02:00
Khaled Hosny
5dc52ee001 tdf#113694 Fix BreakIterator_CTL surrogate pairs
BreakIterator_CTL in the non CharacterIteratorMode::SKIPCELL mode did
not handle UTF-16 surrogate pairs at all, causing backspace to delete
lone surrogates which is really bad. Just copied the corresponding code
from BreakIterator_Unicode.

Additionally, BreakIterator_th was not correctly skipping non-Thai text
and always treating one character as Thai.

Change-Id: Ia379327e042ff602fc19a485c4cbd1a3683f9230
Reviewed-on: https://gerrit.libreoffice.org/54631
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
2018-05-22 15:38:55 +02:00
Stephan Bergmann
93aa646dab Missing test dependency
[...]
> CppunitTest_sc_subsequent_export_test
> warn:oox:31852:31852:oox/source/export/vmlexport.cxx:1099: failed to open vml-shape-types
> /usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/debug/vector:417:
> Error: attempt to subscript container with out-of-bounds index 202, but
> container only holds 0 elements.
>
> Objects involved in the operation:
>     sequence "this" @ 0x0x7f6f0c456340 {
>       type = std::__debug::vector<rtl::OString, std::allocator<rtl::OString> >;
>     }
[...]

Change-Id: I1a93d97e18eb4341ea9059ea7ad52f20c298c97f
2018-05-22 14:56:01 +02:00
Mike Kaganski
99dd2aeaf5 db04be037b611e296ef9f2542322c52ed82d7a2b follow-up: no new log area
Change-Id: Ib0dc0240db4840d3e93f1816d4288644d9e308f0
Reviewed-on: https://gerrit.libreoffice.org/54660
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
2018-05-22 14:36:02 +02:00
Mike Kaganski
741d0e0b09 cleanup redundant variable
Change-Id: I9cd40e3752cbfa85d8bf294f8ac444f88d08a881
Reviewed-on: https://gerrit.libreoffice.org/54657
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-05-22 13:02:56 +02:00
Marco Cecchetti
1f2d389c3d lok: charts context menu was misplaced + wrong LogicToLogic conversion
Chart context menu was misplaced since the context menu expects a
position related to the document window not to the chart window.
Moreover map mode is not enabled for chart window, that leads to use
the LogicToLogic routine which unfortunately provides a wrong pixel to
twips conversion. In fact we gets a 20 twips per pixel conversion
since LogicToLogic uses a fixed 72 dpi value, instead of a correctly
computed output device real dpi or at least the most commonly used 96
dpi value.

Change-Id: Idb4220d03fddd4b6d643c1c0fb52754bafed7e36
Reviewed-on: https://gerrit.libreoffice.org/53118
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/54649
Reviewed-on: https://gerrit.libreoffice.org/54655
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
2018-05-22 12:49:19 +02:00
Gabor Kelemen
494f1a98bf tdf#42949 Fix IWYU warnings in sc/inc/formularesult.hxx
Found with bin/find-unneeded-includes
This one caused lots of fallout, manage it separately

Change-Id: Idf153caa07b1edd85352609806f5b8b74fc6ead8
Reviewed-on: https://gerrit.libreoffice.org/54410
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-05-22 12:20:20 +02:00
Tor Lillqvist
a0b34f97ef Restore .git-hooks/commit-msg accidentally removed earlier
(Removed in a06954bf5b100c9433b4e1dbcdcf8ab2df2763a1.)

Change-Id: Ieec84ecb9863c490786e4c195b8e6a838c0712a0
Reviewed-on: https://gerrit.libreoffice.org/54662
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-05-22 11:48:59 +02:00
Miklos Vajna
cea4e6c4d9 sw: prefix members of WW8Style
Change-Id: Ib42250d293b7dc5ae5f4dca8687d8052db8da21e
Reviewed-on: https://gerrit.libreoffice.org/54653
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2018-05-22 11:26:52 +02:00
Noel Grandin
51b49228ee loplugin:unusedfields in avmedia..comphelper
Change-Id: I74f125103b67c506d9bb67537e4c4cd3f8f871da
Reviewed-on: https://gerrit.libreoffice.org/54641
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-05-22 11:16:54 +02:00
Dennis Francis
e129d1ae09 Fix the incomplete self reference checks for doublerefs
This fixes the case when the start and end points of the
doubleref are themselves outside the formula-group range,
but the doubleref engulfs the entire formula-group.

Change-Id: Ie43ef5560a867769a1f08c893d9497c40401cc5b
Reviewed-on: https://gerrit.libreoffice.org/54642
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2018-05-22 10:43:35 +02:00
Rizal Muttaqin
a06954bf5b tdf#117342 - Add Karasa Jaga to LibreOffice core
Change-Id: Id121df0ddc763a299c5714cadd0d61740876e3d6
Reviewed-on: https://gerrit.libreoffice.org/54512
Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
Tested-by: Heiko Tietze <tietze.heiko@gmail.com>
2018-05-22 10:38:59 +02:00
Samuel Mehrbrodt
203d967c04 Related tdf#83877 Select certificate ok button label doesn't match
Change the button to "Select" instead of sign when we only want to
select a certificate.

Change-Id: Ifa896e502c8680497d71912ddd1058ab0b71542b
Reviewed-on: https://gerrit.libreoffice.org/52823
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-05-22 10:27:37 +02:00
László Németh
066abd6163 tdf#117171 unit test for localized page number numbering styles
Change-Id: Iad92cbe0b0376725c3078d26a4f3201d072c3c16
Reviewed-on: https://gerrit.libreoffice.org/54554
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2018-05-22 10:01:02 +02:00
László Németh
3bac285337 tdf#117171 support localized page number numbering styles
in ordinal and cardinal number names and ordinal indicators.

Change-Id: I35fa9c5c31b31f112ac0bb7feb5d310daca819e1
Reviewed-on: https://gerrit.libreoffice.org/54553
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2018-05-22 10:00:41 +02:00
Samuel Mehrbrodt
ce005c88e2 Don't try to sign when no certificate is selected
Change-Id: I30f8f5970538db25ae678dc5b32afb292fd3983a
Reviewed-on: https://gerrit.libreoffice.org/54652
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-05-22 09:43:37 +02:00
Samuel Mehrbrodt
090e243c40 tdf#83877 Use Signer comments as signature description
Change-Id: Ia9f18addeee9cf86989c873419113ddbd07c219f
Reviewed-on: https://gerrit.libreoffice.org/54551
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-05-22 09:43:22 +02:00
Samuel Mehrbrodt
6499ea2ff4 tdf#83877 Add valid/invalid images to signatures
Change-Id: I958c1bad2f32383ebaaeb7d42c761f0d1dfefc35
Reviewed-on: https://gerrit.libreoffice.org/54513
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-05-22 09:43:10 +02:00
Jan Holesovsky
b6dda60b3e Revert "lokdialog: Give non-programmatic name to autofilter"
In the meantime, we are able to treat the title-less pop-ups just fine.

This reverts commit a895f6356159f4267c0ac24781814ae0cbcba0b9.

Change-Id: I1e2913190e9a1141eddf9aba0732e57bd5407987
Reviewed-on: https://gerrit.libreoffice.org/54629
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2018-05-22 09:16:23 +02:00
Mike Kaganski
c8c7f19073 Really don't show empty Writer document on cancelled recovery
Commit b5ad981518f4407243f89507b2561dd0b1ef28ee tried to make that,
but either didn't work on all platforms, or was broken later. Then,
commit fbe9accf36ac4c52ef5bcb84d455b4d06c317668 handled one special
case.

The problem is that cancelling recovery returns false. It's unclear
why the distinction should be done for the cancelled recovery case:
in any case, if the recovery has opened some documents, it will be
handled in the code that enumerates frames ("no default document if
 a document was loaded by recovery..." comment). In other cases, we
need to honour user command line parameters (selected module), and
if none is specified, do the global default, which is currently to
show Start Center. So - let the OpenDefault() do just that.

Change-Id: I90f3581fc72628d1317e97074a4a1d352d630c7e
Reviewed-on: https://gerrit.libreoffice.org/54604
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-05-22 08:58:00 +02:00
Tor Lillqvist
059872b47e tdf#77444: Call TriggerUserEventProcessing() in a few key places
Causes the updated aAppEventList to be handled right away, and not
only when the next ten-second timed fires.

Change-Id: Idbcc67f13c8ea69cc08b6c5f832d4461579d5dc6
Reviewed-on: https://gerrit.libreoffice.org/54643
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2018-05-22 08:53:49 +02:00
Tor Lillqvist
0f2157cb15 Bin dead code
OleServer::provideService() was not called anywhere. That means the
ProviderOleWrapper class is unused, too. Which is good, as it seemed
to largely be identical to OneInstanceOleWrapper anyway.

Change-Id: If8782d56ed1ec1bb173cfc18be585be4c331f335
Reviewed-on: https://gerrit.libreoffice.org/54647
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2018-05-22 08:52:44 +02:00
Takeshi Abe
1091e786b4 vbahelper, xmloff: Ask current datetime only once
Change-Id: I930983fab11d30f0887965fe30b07c5ac6eef8ef
Reviewed-on: https://gerrit.libreoffice.org/54651
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-05-22 08:45:04 +02:00
Abhyudaya Sharma
038c607e40 tdf#108523 Remove @author annotations
Change-Id: Icd9cd2c17657001058f09c4042804a91b4f1d1b1
Reviewed-on: https://gerrit.libreoffice.org/54539
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-05-22 08:35:22 +02:00
Stephan Bergmann
d9cc5a1c28 Turn debug fprint in vcl/unx/generic/fontmanager/ into SAL_INFO
...mapping OSL_DEBUG_LEVEL > 1 ones to "vcl.fonts" and OSL_DEBUG_LEVEL > 2 ones
to new "vcl.fonts.detail"

Change-Id: I750b4915083c4a0f9d0310a667987ff33d7fcc2a
Reviewed-on: https://gerrit.libreoffice.org/54526
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-05-22 08:32:37 +02:00
Olivier Hallot
c697e7f566 Place help button on the left of signature dialog
Change-Id: Ic78646b7540d2eaf176b3b6c57b0225793b866bd
Reviewed-on: https://gerrit.libreoffice.org/54597
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-05-22 07:01:57 +02:00