Commit Graph

420755 Commits

Author SHA1 Message Date
Noel Grandin
a1b58e93f6 loplugin:constantparam
Change-Id: I3ce653c0d9e517229dbbe32cc8d3ec3c206e364d
Reviewed-on: https://gerrit.libreoffice.org/51273
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-03-14 14:30:35 +01:00
Caolán McNamara
0378294606 enable column search for welded treeviews
Change-Id: I017dc2e5270d86b2168faf3f9240eeded1fc3533
Reviewed-on: https://gerrit.libreoffice.org/51272
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-03-14 14:27:49 +01:00
Mohammed Abdul Azeem
bf46b46a1d Moving XSAXDocumentBuilder2 to use XFastDocumentHandler:
This is used in parsing of meta Contexts across different
modules. This also involved moving to XFastParser for
parsing xml filters in sw, sd, starmath.

Change-Id: Ic663aaac6cb20ee8ce5b97cae87c93220f5a2929
Reviewed-on: https://gerrit.libreoffice.org/42989
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
2018-03-14 14:12:08 +01:00
Noel Grandin
1b61d0417b loplugin:unusedmethods
Change-Id: I7c780be3e2740fd9b03c39ebe16935d61caf4f7e
Reviewed-on: https://gerrit.libreoffice.org/51257
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-03-14 13:21:49 +01:00
Noel Grandin
f95afd856d loplugin:unusedfields
Change-Id: I321a731585879374cc13a992dd3afaa23b8712e0
Reviewed-on: https://gerrit.libreoffice.org/51269
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-03-14 13:21:33 +01:00
Miklos Vajna
0efb6a1a35 sw XHTML export: fix handling of character styles
Namespace prefix was missing here.

Change-Id: Id746d47713b22e2efd5d679c2325b32a0bee8a09
Reviewed-on: https://gerrit.libreoffice.org/51270
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2018-03-14 13:19:31 +01:00
Tor Lillqvist
4fa902d1c1 Add IMarshal2 to IIDs recognized
Change-Id: Ib5a1da6666ff3a136c05374f10b7ca138c14492d
2018-03-14 14:02:07 +02:00
Stephan Bergmann
c71aff0473 Missing intialization of SwPageDesc::m_pTextFormatColl
...in efcb9a7078 "use sw::WriterMultiListener
instead of SwDepend in SwPageDesc", causing

> /sw/source/core/layout/pagedesc.cxx:198:74: runtime error: upcast of misaligned address 0xbebebebebebebebe for type 'SwTextFormatColl', which requires 8 byte alignment
> 0xbebebebebebebebe: note: pointer points here
> <memory cannot be printed>
>     #0 0x2b06bea9116b in SwPageDesc::GetRegisterFormatColl() const /sw/source/core/layout/pagedesc.cxx:198:74

during e.g. CppunitTest_sw_odfimport of ASan+UBSan builds.

Change-Id: If50a920ca5dafdce6c1a3e2fbf540488685e641a
2018-03-14 11:53:37 +01:00
Olivier Hallot
9f16845d48 Updated core
Project: help  781da1e8175459f27cca84bed2ca209b3e030067

tdf#99611 improve function AND() documentation

Added details on handling non logical arguments in
Calc logical functions.

Change-Id: I416fbe9443777a7a7bdfa9d3f61bdf072aff476b
Reviewed-on: https://gerrit.libreoffice.org/51176
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-03-14 11:48:49 +01:00
László Németh
a7bb853b34 Updated core
Project: dictionaries  3bc3ffdb0b622cc07b5d959225a9f2223afdf145

Hungarian grammar checking rules v1.6.3

Change-Id: I2c898690f12edc0ad4c83dc6395813e21a724f64
Reviewed-on: https://gerrit.libreoffice.org/51227
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2018-03-14 11:42:08 +01:00
Pranav Kant
859b7b09f5 lokdialog: debug red-colored boundary for last painted region
Easier to see what's going on inside the LOK dialog.

Change-Id: I59974200af3d2356b7c27eb3dd4032a59c00dbed
Reviewed-on: https://gerrit.libreoffice.org/51263
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
2018-03-14 11:38:57 +01:00
Vasily Melenchuk
ae11dec720 tdf#115297: 1bit images displaying fixed (again)
Previous fix 25cd843664 like any
other before it have some regressions, so reverted.

The root of most problems: fix for tdf#104141
d148340bab, where mask drawing
was implemented in bitmap drawing code.

So instead of guessing for type of bitmap, mask is drawn with
DrawBitmapEx resolving all known problems (tdf#114726, tdf#115297,
tdf#113918 and tdf#104141).

Change-Id: Ie00f7552d667e237b3c0f9505ee09cb51e85c43c
Reviewed-on: https://gerrit.libreoffice.org/50828
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-03-14 11:13:52 +01:00
andreas kainz
1008cd6b0a Colibre icons: add links.txt file
Change-Id: Ib64bac119e463b56a8cb86a2dcd77c9f07699844
Reviewed-on: https://gerrit.libreoffice.org/51252
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2018-03-14 10:35:14 +01:00
Olivier Hallot
0e7992d7b2 Updated core
Project: help  770c0c1746b5c0b94dc07d5f1d6c2c04802c8540

tdf#116296 remove produt version from help path

Part two.
Part 1 is in sfx2 module

Remove product version from offline help path but keep
in online help.

Product version is kept for online because a help server can have more
than one helponline version.

Change-Id: I1d4ba12a7d6472defd4210c79349e35ccaf32d8d
Reviewed-on: https://gerrit.libreoffice.org/51126
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2018-03-14 09:51:49 +01:00
Olivier Hallot
9f72889643 tdf#116296 remove produt version from help path
Part one.
Part 2 is in helpcontent2 module

Remove product version from offline help path but keep
in online help.

Test for existence of old offline help is done now
checking the presence of the file help/<lang>/err.html

Test for new (html) offline help is done now checking
the existence of the folder help/<lang>/text

Change-Id: I1d00a4eac6746f0ace5a40db56910803a5e0d6f4
Reviewed-on: https://gerrit.libreoffice.org/51127
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-03-14 09:51:45 +01:00
Takeshi Abe
bba299d814 tdf#114751 Update the default UI fonts for Japanese locale
- give priority to IPA P Gothic and Noto Sans CJK JP
- for Windows, try Yu Gothic UI first, then Meiryo UI
- look for Hiragino Kaku Gothic ProN/Pro on macOS

Thanks to Jun Nogata and AWASHIRO Ikuya for their suggestions.
This addresses only part of the issue; another incoming change
will take care of the rest.

Change-Id: I1491ba63e1447d3b9086dfcfdf3981bee6282661
Reviewed-on: https://gerrit.libreoffice.org/50515
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2018-03-14 09:37:44 +01:00
andreas kainz
dc68ba9b48 Colibre icons: add column pageproppanel icons
Change-Id: I3a05c1b0172ba2c3d3becc5dbca7d7cc2d3f8567
Reviewed-on: https://gerrit.libreoffice.org/51258
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
Tested-by: andreas_kainz <kainz.a@gmail.com>
2018-03-14 09:27:17 +01:00
Michael Stahl
0d6ffe118f xmloff: ODF import: improve meta:generator checks
Instead of a hard-coded check for (effectively) one project name
"LibreOffice" (which is build-time configurable), check for the string
"LibreOffice_project", which has been produced hard-coded ever since
LO 3.3.0.

This now recognises additional downstreams "LibreOffice_Vanilla"
and "Collabora_Office", and also historic "BrOffice".

An important point here is that the build-time configurable version
numbers of any downstream that retains the hard-coded
"LibreOffice_project" *MUST* be the same as the upstream's at least
in their major and minor versions (micro and further digits are
currently not used), and that such downstreams don't backport
changes with ODF export compatibility impact further than upstream.

Add a unit test too, with a representative sample of 4372 distinct
generators in bugzilla attachments.

This revealed that StarOffice 6 and AOO 4.0.1 were falling through
the cracks and not recognised, so fix that too.

Change-Id: I8105222d3428e7b20cc4a6b8e76732c697812594
Reviewed-on: https://gerrit.libreoffice.org/51171
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-03-14 08:59:38 +01:00
Miklos Vajna
80f9383f1a boost::intrusive_ptr->tools::SvRef
To avoid semi-manual refcount handling.

Change-Id: I4a0bcd00ef2811a76f85313d2f821daa1731898c
Reviewed-on: https://gerrit.libreoffice.org/51242
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-03-14 08:58:36 +01:00
Stephan Bergmann
76850fcd99 prefix is unused when all implementations have constructors
Change-Id: I5d2efaa16932c0014cfb7491136b5d37f3e6dded
Reviewed-on: https://gerrit.libreoffice.org/51160
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-03-14 08:50:28 +01:00
Jochen Nitschke
0fe96112be cppcheck: useInitializationList
Change-Id: I7b3cce8d84176c13801a906af79e353a541135ce
Reviewed-on: https://gerrit.libreoffice.org/51240
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-03-14 07:23:10 +01:00
Noel Grandin
ed2ae3c3bb remove dead SwNoteURL
According to:

<mst_> noelgrandin: apparently this code exists so you can export a text

     frame as an image and then the urls in the text become
    image-map links

which means that according to my analysis below, nobody has noticed the
removal in 17 years :-)

SwNoteURL::InsertURLNote was the last place that constructed an
SwNoteURL and it was removed in
    commit bb7ade140d
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Wed Mar 7 13:42:58 2018 +0200
    loplugin:unusedmethods

and SwNoteURL::InsertURLNote was dead because
   void SwTextPaintInfo::NotifyURL_( const SwLinePortion &rPor ) const
was removed in
    commit 73139fe600
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Fri Jan 19 13:10:22 2018 +0200
    loplugin:unusedmethods

and SwTextPaintInfo::NotifyURL_ was dead because
   void SwTextPaintInfo::NotifyURL( const SwLinePortion &rPor ) const
was removed in
    commit be8c414567
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Fri Jan 19 09:13:03 2018 +0200
    loplugin:unusedmethods also check for functions returning bool

and NotifyURL was dead because calls to it were removed in
    commit 1b666235f6
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Wed Jan 3 09:08:52 2018 +0200
    loplugin:singlevalfields improve copy constructor check
those calls were removed because the m_bURL field of SwFont was always
false.

tracing back, we find that m_bURL was called bURL before
    commit b4e2a13f46
    Author: Miklos Vajna <vmiklos@collabora.co.uk>
    Date:   Mon Oct 26 08:55:17 2015 +0100
    sw: prefix members of SwFont

and we find that a method
     void SwFont::SetURL(const bool)
that modified bURL was removed in
    commit 407731c9f4
    Author: Noel Grandin <noel@peralex.com>
    Date:   Tue Jul 21 10:44:17 2015 +0200
    loplugin:unusedmethods sw

and we find that calls to SetURL were removed in
    commit da7671e4f7
    Author: Andreas Martens <ama@openoffice.org>
    Date:   Thu Mar 15 14:59:12 2001 +0000
    Opt.(FME): The new attribute handler makes a lot of code superfluous

which appears to be the root of the problem

Change-Id: Id2362ce216c06bc8dcf71698695d708eb494af4e
Reviewed-on: https://gerrit.libreoffice.org/51225
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
2018-03-14 07:19:00 +01:00
Noel Grandin
bb787e7b45 modernize ScRangePairList::CreateNameSortedArray
we have this STL thingy now, pretty cool

Change-Id: Id96010dda59736bd0c143312424018b6ea5621f1
Reviewed-on: https://gerrit.libreoffice.org/51230
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-03-14 07:18:41 +01:00
Julien Nabet
c775efffa7 Modernize a bit filter (part1)
mainly by using for-range loops
+ some algo simplifications

Change-Id: Ibbf2c4bb504b93cb9d7b2314deb6e65257c56029
Reviewed-on: https://gerrit.libreoffice.org/51243
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-03-14 07:02:25 +01:00
andreas kainz
8e8dd8f320 Colibre icons: add cmd sc_ icons
Change-Id: I9534ee64a895678acb705c280c6334a99d9ae25b
Reviewed-on: https://gerrit.libreoffice.org/51251
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
Tested-by: andreas_kainz <kainz.a@gmail.com>
2018-03-14 00:48:41 +01:00
Mert Tümer
7105ad16e7 [Pardus] tdf#107026 render the new page without reopen the document
This patch is sponsored by ULAKBIM/Pardus project.
Signed-off-by: Mert Tümer <merttumer7@gmail.com>

Change-Id: I91c902bfd1acc5cc70ad30f16e0719e7a325702b
Reviewed-on: https://gerrit.libreoffice.org/47636
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-03-14 00:43:12 +01:00
Mert Tümer
31e939c9f4 tdf#96796 - Added clipboard actions for the Android Viewer
Change-Id: I2779ef9a9f68dcf08c3072ffe83b9f2450b7257e
Signed-off-by: Mert Tümer <merttumer7@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/50757
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-03-14 00:35:21 +01:00
Jim Raykowski
6d2f6f2f01 tdf#115565 Change tab key behavior to navigate out of gotopage control
...in Writer Sidebar Navigator deck helper toolbox

Change-Id: Ieeabcb30f421aa0ce2a5f841e45fff5f57358215
Reviewed-on: https://gerrit.libreoffice.org/50295
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-03-14 00:33:45 +01:00
himajin100000
32f42d093d tdf#116351: fix re-use of AttributeList on PGP manifest
multiple attributes of the same name on the same element,
because AttributeList was wrongly re-used

Change-Id: I29b2317ce3d836d7349fa0474709726bed2c5ad4
Reviewed-on: https://gerrit.libreoffice.org/51087
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-03-14 00:19:38 +01:00
Michael Stahl
fd67ee14e7 tdf#91106 sfx2: Stylist hierarchical: sort the Default Style first
(regression from 41af2a9e26)

Change-Id: I47377447dd1e04a44033dea27ce7307a65821737
2018-03-13 22:44:06 +01:00
Bjoern Michaelsen
fa585ae736 use sw::WriterMultiListener instead of SwDepend in SwDDETable
Change-Id: Iaf3b3429d48ecebae5aaf27b384377aec607d3ba
Reviewed-on: https://gerrit.libreoffice.org/51188
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2018-03-13 22:43:40 +01:00
Bjoern Michaelsen
efcb9a7078 use sw::WriterMultiListener instead of SwDepend in SwPageDesc
Change-Id: Ifaf9c808e04e736d0a1f7eaf884b8674ac78e0f3
Reviewed-on: https://gerrit.libreoffice.org/51189
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
2018-03-13 22:40:41 +01:00
Eike Rathke
f59cf3874a ofz#6845 use of "deleted" ScRange
If nOverPos<i and i was last element, the next pOver=&rRange was
invalid, though not deleted because std::vector::erase() does not
reallocate.

Change-Id: I22d9302e2d45403dd47ac1947d2cf003b3a4f291
2018-03-13 22:36:27 +01:00
Caolán McNamara
99aaa4b0b8 weld insert table dialog
Change-Id: I17bdbba38a74ea05b0d6869ee04f01f870a3b17b
Reviewed-on: https://gerrit.libreoffice.org/51219
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-03-13 22:07:48 +01:00
Caolán McNamara
5504dcc698 set welded enties to activates-default
cause the vcl ones are equivalent to this so less change

Change-Id: I60d9ba5faab6c133242b002b81fa8e4747a92383
Reviewed-on: https://gerrit.libreoffice.org/51220
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-03-13 21:31:22 +01:00
Michael Stahl
bd23e1dd6b sw: try to fix Android build, use printf macro
Change-Id: I94208553c7678d9d108ec3f76decc3c38d69802e
2018-03-13 20:57:40 +01:00
Noel Grandin
fb1825bf3f loplugin:unusedmethods remove unused code from canvas
which my plugin had previously been ignoring. Since that time, the
plugin has gotten a little smarter, and makes less mistakes.

Change-Id: Id791c932fd056ae7da833436c4dd2600b69a0bfa
Reviewed-on: https://gerrit.libreoffice.org/51212
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-03-13 19:25:02 +01:00
Caolán McNamara
724d34d58b ofz#6891 empty vector access
Change-Id: Ic36d03d2646ebd90bea5fa91bc4dac3596a55d4a
Reviewed-on: https://gerrit.libreoffice.org/51224
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-03-13 18:23:13 +01:00
Khaled Hosny
ae0a3825f5 tdf#116344: Don’t Kashida justify Syriac text
I’ve always suspected this check in VCL is wrong since Writer calculates
Kashida positions for Arabic only. If we *really* want to Kashida
justify Syriac, then Writer has to be first taught how to calculate
Kashida positions for it.

Change-Id: I20c03a3a54bce14c9bebb55426bd22537fe50d6a
Reviewed-on: https://gerrit.libreoffice.org/51223
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
2018-03-13 18:04:29 +01:00
Michael Stahl
226ec5aebb vcl: race in OSX SalYieldMutex::doRelease
m_nCount must be accessed with m_aMutex locked.

Change-Id: I7e05cac2b549b975804d6061721c1da4d0b9f64e
Reviewed-on: https://gerrit.libreoffice.org/50236
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-03-13 17:14:16 +01:00
Jan Holesovsky
1b9af08481 tdf#116334: Actually when there is no handler, we have to return 'true'.
Also use the return value of the link's Call() [as the SvTreeListBox::ExpandingHdl()
is doing], the appropriate callbacks seem to return the expected 'false' in
the cases I've reviewed...

Change-Id: I0cdd63e8ec4c794839070b914150e0b32f743359
Reviewed-on: https://gerrit.libreoffice.org/51211
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2018-03-13 16:28:40 +01:00
Caolán McNamara
0679d6375c ofz#6888/forcepoint#27 adjust consistency check
Change-Id: I0d1f04170bcbc08fe30236e2444761d9d71fb1fb
Reviewed-on: https://gerrit.libreoffice.org/51221
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-03-13 16:09:12 +01:00
Noel Grandin
a93d940186 make transformBitmap code from canvas to vcl
part of making ScopedWriteAccess an internal detail of vcl

Change-Id: Ida03bc73fe746cde97f6fcb5cde2f066b63d92e9
Reviewed-on: https://gerrit.libreoffice.org/51216
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
2018-03-13 15:32:42 +01:00
Noel Grandin
9d81a7ae6d rename some mpOutdev fields to mpOutdevProvider
to help my little brain keep the two things distinct

Change-Id: Iaf866c410b3ce3c4720d5efff4497507f1bd57c5
Reviewed-on: https://gerrit.libreoffice.org/51210
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-03-13 15:26:34 +01:00
Samuel Mehrbrodt
3bbdf71520 tdf#116354 Termchange: Picture -> Image
Change-Id: I01a87ca6647a6e7dba4c20d20c2e3120c2a96feb
Reviewed-on: https://gerrit.libreoffice.org/51218
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-03-13 15:07:35 +01:00
Samuel Mehrbrodt
6ae7b9d40c tdf#114552 Also reduce the anchor offset when shrinking images
Else the image will get larger than its current cell.

Follow-up for 4f29ce6a67

Change-Id: If2fb1087961a1b20f5a408ca3061956e96330e91
Reviewed-on: https://gerrit.libreoffice.org/51209
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-03-13 14:16:14 +01:00
Mike Kaganski
6ab9f0cfcd SDI: don't #define/#undef names of actual classes for slot headers
Visual Studio 2015/2017 cannot handle that correctly, and emits a lot
of intellisense errors. So, just prepend the define with "ShellClass_"

Change-Id: I473ceb7e0a88e114b92e6342fd4ae63015cafd3e
Reviewed-on: https://gerrit.libreoffice.org/51135
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-03-13 14:14:12 +01:00
Luke Deller
fe6da2feb5 tdf#116179 Support reading "auto" colour from docx
In docx a colour value is represented as a 6-digit hex RGB value, or
alternatively the word "auto" to represent automatic colour.

 - Add support for reading the value "auto" as COL_AUTO.  Previously
   this would be read as if it were a hex value, stopping at the
   letter 'u' which is not a valid hex digit, resulting in the colour
   0x00000A - a very dark blue, which looks close enough to black that
   it went unnoticed for a long time :-)

 - Remove code which tried to handle this wrong 0x00000A value,
   including the constant OOXML_COLOR_AUTO, as it is no longer needed
   and will cause surprises for anyone who really wanted this exact
   shade of dark blue

 - Fix unit tests that were checking for 0x00000A

Change-Id: I6000070341931147ff9341ad6281cd3b53c02b46
Reviewed-on: https://gerrit.libreoffice.org/50995
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-03-13 14:06:13 +01:00
Caolán McNamara
fc6a899405 ofz#6843 Integer-overflow
Change-Id: I3984253ac3e5eaf0be7b10c8ba95d50e6bd9ce5d
Reviewed-on: https://gerrit.libreoffice.org/51175
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-03-13 13:49:35 +01:00
Christian Lohmaier
e993d98e29 update credits
Change-Id: If08d6a65d35b3c1d7226e004933bffc3769ba398
2018-03-13 13:47:29 +01:00