coverity#708535 Uninitialized scalar field

Change-Id: Ife2acd5dd5193edd0ca34d85370885ee6865fadd
(cherry picked from commit ecc6239f5b7decfc61b68e745175982fdeee931e)
Reviewed-on: https://gerrit.libreoffice.org/8513
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
fix negative error bar range export, fdo#75510

Change-Id: Icca2f9fc26b15b968a940e5c73f7ad3781f75e94
(cherry picked from commit 7470b3ef17570581fe590a4853de59cac1be6ea5)
Reviewed-on: https://gerrit.libreoffice.org/8536
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
Resolves: fdo#50855 Nimbus Sans L missing styles

Change-Id: Ie8cdcf4ad0ffe52024fd5cfe33073abfc6aadca8
(cherry picked from commit 1e539dbf0fe3894bbf6bf1a0851163b56e37f090)
Reviewed-on: https://gerrit.libreoffice.org/8557
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
fdo#72481 drawingml import: don't set CharEscapementHeight unconditionally

Commit 840a8573c8cebe67ddd3c9fe106c7dbd789bb334 (Fix fdo#70220
Superscript not imported from pptx., 2013-10-07) made it possible to set
CharEscapementHeight even if moBaseline is not set, but this causes
problems in the docx importer + not necessary, according to the bugdoc;
so just don't do that.

Conflicts:
	sw/qa/extras/ooxmlimport/ooxmlimport.cxx

Commit and message cherry picked from:

commit 798a563db133ebed3876c245459d90ef54ee7c9a
Author: Miklos Vajna <vmiklos@collabora.co.uk>

Change-Id: Ib95ac449bd8fdf6376261ddc86108f0d23f2200e
Reviewed-on: https://gerrit.libreoffice.org/8414
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
bnc#865381 DOCX import: table cell btLr text direction fixes

(cherry picked from commit 48b5b7641d0df960558082e8948da8598f801264)
(cherry picked from commit 970160f78ef6cc7abacfa252daa8451e1f0117bb)

Conflicts:
	sw/qa/extras/ooxmlimport/ooxmlimport.cxx
	writerfilter/source/dmapper/DomainMapperTableManager.cxx
	writerfilter/source/dmapper/TablePropertiesHandler.cxx

Change-Id: I527955671e1100f05da717bffe002131baaf0291
Reviewed-on: https://gerrit.libreoffice.org/8554
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
fdo#68779: RTF import: set borders without explicit width

Word reportedly uses 0.75pt as a default if \brdrw is missing.

(cherry picked from commit 84f4de3b65cd0f861e80c69b773004f28f9f8d9f)

Conflicts:
	sw/qa/extras/rtfimport/rtfimport.cxx

Change-Id: I263c56f756c65ff6bb30870aa70806564d5826a6
Reviewed-on: https://gerrit.libreoffice.org/8595
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
fix odf validation error

This is the import only change for older release branches.

New elements must not be exported into the chart namespace.

Change-Id: I295d61224e255dff04ea8564b01a5a438876afc1
Reviewed-on: https://gerrit.libreoffice.org/8580
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
justify range to prevent negative tab span and memory alloc, rhbz#1057741

I could not reproduce the crash of that bug (probably having more memory
available), but the backtrace had nTabSpan = -2 implicitly casted to
size_t leading to allocation of a huge amount of memory with
vector::reserve(), which ScRange::Justify() exactly prevents.

Change-Id: Idb79e1be62649922ba793cab01e00011479fade9
(cherry picked from commit a45fde7235f95792bf8e6f6979d0040637c5785d)
Reviewed-on: https://gerrit.libreoffice.org/8625
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
part of "fix odf validation errors around new chart regression curves"

need MAP_ENTRY_ODF_EXT_IMPORT definition from
4c7116413af091a30f5fa60c63d29bc694730518

Change-Id: I5bd4340186beca95eb3c615f713056007fcc5ee1
Reviewed-on: https://gerrit.libreoffice.org/8629
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
fdo#75460: sw: fix AutoScroll

This reverts commit 5141201fba2d080841b81e02be92f4b47aae2684. which
fixed a crash but unfortunately also prevents the
m_pEditWin->HandleScrollCommand from being called, thus disabling
AutoScroll.  Fix the crash in the ugly way by another pWData check.

(regression from 8880c773e779710dc0a08760e92afd709a73ca31)

(cherry picked from commit 6795b251e2011cae945c6bb903de8053953b5e30)

Conflicts:
	sw/source/ui/uiview/viewport.cxx

Change-Id: I958f1403ad23d0c0631eca5dbbef977a9ca1210d
Reviewed-on: https://gerrit.libreoffice.org/8597
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Related: rhbz#1076264 intermittent a11y crash in calc

http://retrace.fedoraproject.org/faf/reports/338291/

this crash refuses to be captured alive. But seeing as
we sometimes check mpViewShell against NULL and sometimes check
GetViewData against NULL its worth making those checks everytime
for consistency

see also...

rhbz#923993 rhbz#896711 rhbz#602273 rhbz#577595 lp#811057 lp#760665

(cherry picked from commit fae1e19af05e664364c55d4f686aaab860fd538d)

Conflicts:
	sc/source/ui/Accessibility/AccessibleDocument.cxx

Reviewed-on: https://gerrit.libreoffice.org/8604
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit d01abcc7beb215c7e425248f690db8a642f00c73)

Conflicts:
	sc/source/ui/Accessibility/AccessibleDocument.cxx

Change-Id: I5553848018f500b63ade60bcfc756a736b27c64f
Reviewed-on: https://gerrit.libreoffice.org/8639
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
fdo#51819: autorecovery: fix saving password in protected documents.

Thanks to sayt@mailinator.com for the idea.

(cherry picked from commit ef87ff6680f79362a431db6e7ef2f40cfc576219)

Conflicts:
	framework/source/services/autorecovery.cxx

Change-Id: Ib79abafe3d4d3ba21f7914aeb284d86ce662824c
Reviewed-on: https://gerrit.libreoffice.org/8681
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
coverity#736084 Missing break in switch

Change-Id: I3c7a032441402455d0a6ed28fc2cd5ce958ead04
(cherry picked from commit 5c291a0287af46558d3ef96d18b114c371ddd31b)
Reviewed-on: https://gerrit.libreoffice.org/8691
Reviewed-by: Matúš Kukan <matus.kukan@collabora.com>
Tested-by: Matúš Kukan <matus.kukan@collabora.com>
coverity#705966 Dereference before null check

Change-Id: I74507ce67f928bdeb626d4070dbd2a45cc126521
(cherry picked from commit 511d8bbbec6bc95d92a3ac6bbac4c68622738706)
Reviewed-on: https://gerrit.libreoffice.org/8697
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
coverity#705969 Dereference before null check

Change-Id: Icb19931bb529e6c2b98621a603cdb86011d68a9e
(cherry picked from commit 51452b7afe858139076010decbe04758321a8396)
Reviewed-on: https://gerrit.libreoffice.org/8733
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
fdo#76568 remove BerkeleyDB from license text

Change-Id: I2cb20a50706d2bae158e9e04d21e357c51a2ad10
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
fdo#62155 - don't crash if we can't create an instance of a calc addin.

Change-Id: I478d7777949683a91e7adf9fa6b54e9d01ced676
Reviewed-on: https://gerrit.libreoffice.org/8771
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Related: #i124516# handle bad surrogate pairs gracefully on Windows

When running into invalid Unicode surrogate pairs the text layout code on
Windows ran into massive problems like crashes. This change detects the
situation of an invalid surrogate pair and falls back to treat it as
a simple character instead of requesting a complex glyph fallback.

(cherry picked from commit 913f1fc4b1362f6e91595af5ae10c4cba79fd355)

Change-Id: I2988f4b64061d0a5df211f6f0f04b1f235fcd6a5
(cherry picked from commit 67688d3118b1a361d5dbdaa78e918815c163d75c)
Resolves: #i124453# check if the resulting polygon...

has already exceeded the number of points (2^16) that can be handled by a tools
polygon

(cherry picked from commit 804e547d70552fd64e1344d538427f8898824b43)

Change-Id: I437a84493e264f7b650561599170e831da20c9aa
(cherry picked from commit a9582c05f854cad02710178ab7fa79498573269e)
(cherry picked from commit ab71a4512557b7290cd7b1b4923463052acf164e)
Resolves: fdo#76802 error msg in Web Page Wizard dialog

Change-Id: I0fa0537a8726bbda182dea8c3a9014d77973edea
Reviewed-on: https://gerrit.libreoffice.org/8798
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>