389200 Commits

Author SHA1 Message Date
Aleksas Pantechovskis
714281d859 tdf#98264, replace CPPUNIT_ASSERT with CPPUNIT_ASSERT_EQUAL
Use correct assert in places from the clang plugin output in the bug report,
also fix some asserts of doubles and argument order (expected, actual)

Change-Id: I4e8e36f3025d74af2baf4a9be27fe4869c82e8cd
Reviewed-on: https://gerrit.libreoffice.org/22911
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-05 21:38:03 +00:00
Aleksas Pantechovskis
c0207352c0 tdf#98264, replace CPPUNIT_ASSERT with CPPUNIT_ASSERT_EQUAL
Change-Id: I3d3079b061a52a384762a354e66759713c91ba77
Reviewed-on: https://gerrit.libreoffice.org/22910
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-05 20:53:06 +00:00
Aleksas Pantechovskis
2406edd37d tdf#98264, replace CPPUNIT_ASSERT with CPPUNIT_ASSERT_EQUAL
Change-Id: Id17cf3a1001af950fdbc09239d023bf52790710f
Reviewed-on: https://gerrit.libreoffice.org/22909
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-05 20:52:52 +00:00
Aleksas Pantechovskis
0355b6b5d2 tdf#98264, replace CPPUNIT_ASSERT with CPPUNIT_ASSERT_EQUAL
Change-Id: Ic02ed30b7135d648c8aac97f65e286c163597f86
Reviewed-on: https://gerrit.libreoffice.org/22908
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-05 20:52:41 +00:00
Aleksas Pantechovskis
4ccd0d99f0 tdf#98264, replace CPPUNIT_ASSERT with CPPUNIT_ASSERT_EQUAL
Change-Id: I682eba5e733fdd3f93781d48c0cfcb3452ba7da0
Reviewed-on: https://gerrit.libreoffice.org/22907
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-05 20:52:26 +00:00
Aleksas Pantechovskis
907e762711 tdf#98264, use DOUBLE_ASSERT_EQUAL for double comparison
Change-Id: I590dcf408163e2470ee387f0394f6daa1145da49
Reviewed-on: https://gerrit.libreoffice.org/22906
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-05 20:52:16 +00:00
Markus Mohrhard
2015a162dd cid#1355251, use delete[] for arrays
Change-Id: I1b34af41051d3cf58eddf124aa79b2e68a2e26f7
Reviewed-on: https://gerrit.libreoffice.org/22937
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-05 20:24:55 +00:00
Norbert Thiebaud
7b59e5e22f vs2015 spam C4267 even in 32 bits mode, silence it for now.
Change-Id: I55ba6e9c51a5bbfc366a36e8e0baef9cf05d5bbc
Reviewed-on: https://gerrit.libreoffice.org/22933
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2016-03-05 18:20:28 +00:00
Aleksas Pantechovskis
c189b03223 tdf#98264, replace CPPUNIT_ASSERT with CPPUNIT_ASSERT_EQUAL
Change-Id: Ieae48c6a2b611d853f2320e27d5836d8c5dbedfb
Reviewed-on: https://gerrit.libreoffice.org/22905
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-05 17:19:52 +00:00
Julien Nabet
da75a89925 tdf#98403: "Ugandan" is better than "Uganda"
Change-Id: I3403afc6c7be58ba2796bab28805d08d6b8a3ad6
2016-03-05 17:37:43 +01:00
Adolfo Jayme Barrientos
59d57076bd Updated core
Project: help  b70052acaf1076f4afa5a4febb79af21730dcafc

Click the what, again?

Change-Id: I3b2ea3ddb165e53ec62c573079532a465ab75a07
2016-03-05 16:22:01 +00:00
David Tardon
0b163fba65 upload libmis 0.5.1
Change-Id: I13feacdbf5d86798424167c89f768040ba7b01ce
Reviewed-on: https://gerrit.libreoffice.org/22927
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2016-03-05 13:02:17 +00:00
Yousuf Philips
6a85a5ddf5 Calc: Improve label text in find toolbar and replace dialog
Change-Id: I25eba84394693c9ae50efa8d6587df536052c4ca
Reviewed-on: https://gerrit.libreoffice.org/22874
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2016-03-05 12:56:39 +00:00
Markus Mohrhard
a3d8833bd8 fix crash in cppunitassertequals plugin
Change-Id: I0427c70aa3a7f55aba4bbe0fe571aab08596541a
Reviewed-on: https://gerrit.libreoffice.org/22922
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-05 11:44:27 +00:00
Julien Nabet
42032f5d3b tdf#98403: UGX Currency is "Uganda" not "Ganda"
Change-Id: Ibfd0b1f8f0af4717691523b87ffce1bcb2ee4b5d
Reviewed-on: https://gerrit.libreoffice.org/22926
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2016-03-05 11:33:12 +00:00
Matteo Casalin
f04999cc84 Delete obsolete/unuseful comments
Change-Id: Iadec409743e144a97c4468052dc0a04b91ca9619
2016-03-05 11:32:12 +01:00
Matteo Casalin
ae35981823 Do not duplicate count of items
Change-Id: I373b39f36fee7c37f2c10cc748f309412d68b688
2016-03-05 11:32:11 +01:00
Matteo Casalin
9f7f577df3 Let find fail, instead of using a dubious upper bound check
Change-Id: I874ef402d241aa4de02057ca9dc747ae0497b1e0
2016-03-05 11:32:11 +01:00
Matteo Casalin
1d4914e9e5 Use Index consistently
Change-Id: I20b7c1bd2ecccc21967c4edab37a94c971aa8a8d
2016-03-05 11:32:11 +01:00
Lionel Elie Mamane
adee5647ea janitorial cleanup
Change-Id: Ic586d9a3bdc3ae850d48848c8ae1cff7f7b4a551
2016-03-05 10:37:32 +01:00
Lionel Elie Mamane
2491b32176 tdf#97462 reportbuilder SECOND() force rounding to nearest nanosecond
Change-Id: I690a81997c79956fc19ddf83f958768d5e7a313e
2016-03-05 10:37:32 +01:00
Tor Lillqvist
02734aa459 Actually I don't see why this would need to be inside OSL_DEBUG_LEVEL > 0
Also combine two short SAL_INFOs into one.

Change-Id: I8ae9f4ec2dc06880281787ee0e4adb6dda26a4cf
2016-03-05 10:12:55 +02:00
Tor Lillqvist
fce232a2ce loplugin:sallogareas
Change-Id: I82430517e045ebee6fd4fff2c95a83a61a19d854
2016-03-05 10:00:14 +02:00
David Ostrovsky
1a056fdb25 Fix nss on MSVC 14.0 in debug mode
outdir doesn't seem to be created. Use current directory for
pdb files as the obj files are already stored in the current
directory.

Change-Id: I41dd65714d314cd374cc5de073d48f1a58b18c56
Reviewed-on: https://gerrit.libreoffice.org/22888
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2016-03-05 04:49:09 +00:00
David Ostrovsky
59907b3600 nss: Fix pointer truncation from 'char *' to 'long'
Change-Id: Ie1659c62cbf77f8b685fdf7d79cd62336fa99005
Reviewed-on: https://gerrit.libreoffice.org/22916
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2016-03-05 04:48:53 +00:00
Yousuf Philips
d9f751a416 tdf#97906 Calc: Correct cell reference shortcut keys
Remove Shift+F4 shortcut key for cell reference and add it to the OOo
Legacy compatibility mode. Improve wording of cell reference error
message. Unify shortcut for Data Sources to Ctrl + Shift + F4.

Change-Id: I0f4ab3768d2663984bb294763c2e4b299c5e8186
Reviewed-on: https://gerrit.libreoffice.org/22803
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
2016-03-05 04:16:54 +00:00
Yousuf Philips
61a91be4aa tdf#88027 Make insert date and time work in es, fi, ru, and pt
Change-Id: I34f25d0e37c48335b458bc2aa92150500106ff29
Reviewed-on: https://gerrit.libreoffice.org/22792
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2016-03-05 02:35:44 +00:00
Yousuf Philips
a46a4154fd tdf#87610 Replace Bookmark with Anchor in Writer Web
Change-Id: Ia698aec5a4ea9bb2452263f5ff975e045da66393
Reviewed-on: https://gerrit.libreoffice.org/22747
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
2016-03-05 01:57:01 +00:00
Yousuf Philips
58bef396cf tdf#91857 Tweaks to the slide and slide show menus
Change-Id: Ie4bfb5525fe56da0cd02e8d5d42bfeef438ff664
Reviewed-on: https://gerrit.libreoffice.org/22736
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2016-03-05 01:55:30 +00:00
Yousuf Philips
bffe939877 Reverting Bubli's fix to make the buttons on the left
Change-Id: I65f1574d48f2c7f29b7dc4f642fc4713442ce743
Reviewed-on: https://gerrit.libreoffice.org/22920
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
2016-03-04 23:02:57 +00:00
Matus Uzak
87d0df65a9 tdf#62255,tdf#92058: PPTX import: Incorrect inheritance of default table style
The default table style defined in tableStyles.xml file can be used
when a table is initially inserted into a document.  It must not be
applied by default to any of the tables not referencing a table style
explicitly from the tableStyleId element.

Change-Id: I025cdfba352c87a32f9a1e297fbc8b9fc2c8c0a4
Reviewed-on: https://gerrit.libreoffice.org/22619
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-03-04 22:22:18 +00:00
Matus Uzak
01157183ea PPTX import: Table cell props: Override default graphic style if applicable.
If no fill type is defined for a table cell, then set it to XML_noFill
explicitly, in order to override the fill type defined by the default
graphic style or the graphic style named standard, added by LO and
exported into ODP.

Change-Id: I9c5aa4c2a939ee7b8c75ae686d845cd14a718254
Reviewed-on: https://gerrit.libreoffice.org/22618
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-03-04 22:21:21 +00:00
Eike Rathke
e0331002d3 do the calculation check only conditionally, tdf#91794 follow-up
... not in all debug builds.

Change-Id: I6f53c6c6860ee00b740484ed31317d5e58922082
2016-03-04 22:31:15 +01:00
Rohan Kumar
5f164b6e01 tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
I made small changes to disable some test code conditionally by adding a few
new debug macros.

Change-Id: Ieaf6f1b29343fb896cc64163a116c629165e8db3
Reviewed-on: https://gerrit.libreoffice.org/22711
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-03-04 20:10:56 +00:00
Chris Sherlock
6381d26d73 tdf#79679 vcl: dashed lines show as solid lines when importing EMF files
Issue is a regression in commit 09c722873b2d378d2d155f5f1dd7d8f3fb2012e9.
(EMF/WMF: fix rendering of pen styles (dash, dot, dashdot, dashdotdot).

I've looked at how the latest version of Word on the Mac works, and it
turns out that the spacings for the PenStyle enumerations in the LogPen
objects for all the create pen EMF records are as follows:

* PS_DOT           - ■ □ ■ □ ■ □ ■ □ ■ □ ■
* PS_DASHDOT       - ■ ■ ■ □ ■ □ ■ ■ ■ □ ■
* PS_DASHDOTDOT    - ■ ■ ■ □ ■ □ ■ □ ■ ■ ■

(where ■ is the actual filled in area, and □ is the space between the
filled in areas)

In other words, each dash fills in the space of three dots, and there
is the one dot worth of empty space between the dashes and dots. Each
"dot" has a width and height equal to the width specified in the pen.

So basically, we seem to be arbitrarily setting the dot, dash and
distance lengths arbitrarily, which were reasonable guesses but tended
to produce very odd lines at different zoom levels.

Change-Id: Ie8b5fa396e4fb0f480cb3594c8129a59f472c1b8
Reviewed-on: https://gerrit.libreoffice.org/22886
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-03-04 18:23:15 +00:00
Winfried Donkers
c788f63726 follow up of tdf#94635
fix no opcode mapping warnings:
warn:sc:32739:14:sc/source/filter/oox/formulabase.cxx:1431: OpCodeProviderImpl::initFuncOpCode - no opcode mapping for function ODF 'ORG.LIBREOFFICE.FORECAST.ETS.MULT' <-> OOXML '_xlfn.FORECAST.ETS.MULT'
'ORG.LIBREOFFICE.FORECAST.ETS.PI.MULT'
'ORG.LIBREOFFICE.FORECAST.ETS.STAT.MULT'

Change-Id: I55bbf79b40944d76486085f5aceb842197c51b5c
Reviewed-on: https://gerrit.libreoffice.org/22914
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2016-03-04 17:51:32 +00:00
Caolán McNamara
cd9a5cf431 Resolves: tdf#98399 RET_USER_CANCEL is non-zero and returned on cancel
Change-Id: Id4231454dfb34cac6ee89d63beb18a83c63a44c1
2016-03-04 16:45:29 +00:00
Caolán McNamara
8141f0d5e7 duplicate defines
Change-Id: Ie3a8fbd430651dafaa837fabad0d0f818449b3fb
2016-03-04 16:41:02 +00:00
Stephan Bergmann
244d22a3d2 Work around -Werror,-Wunused-macros with clang-cl
clang-cl as-is does not provide the intrinsics provided by MSVC; you need to
explicitly include Intrin.h (provided by clang) for that.  So, as a hack,
specify CC/CXX as

  clang-cl.exe -FIIntrin.h ...

to have the intrinsics always available.  But Intrin.h includes stdlib.h, so by
the time sal/osl/w32/random.c defines _CRT_RAND_S before including stdlib.h, the
latter has already been included without _CRT_RAND_S support.  So, as a second
hack, specify CC rather as

  clang-cl.exe -D_CRT_RAND_S= -FIIntrin.h ...

But then clang-cl starts to emit -Werror,-Wunused-macros, as defining
_CRT_RAND_S in the main file has no effect here.

Change-Id: I5dfe9872dea7e8eb476d9260f17ab8d8893f48af
2016-03-04 17:15:08 +01:00
Stephan Bergmann
9055fb4840 clang-cl: Enable more warnings etc. (like in the Clang/GCC case)
Change-Id: Ia1fb09b89d3ccc3c7f4a11799f0d8eac99c6c7a9
2016-03-04 17:08:08 +01:00
Stephan Bergmann
af662f323d -Werror,-Wshadow
In the second part, looks odd that those two lines are a perfect copy of what is
already done near the start of the function, but I have no insight at all into
that code, so just leave it at that.

Change-Id: I6b1d973f77a3d9389880ddec500968144ba615f2
2016-03-04 17:04:57 +01:00
Stephan Bergmann
6cadf68aef -Werror,-Wshadow
Looks odd that this isGet block is a perfect copy of what is already done before
this else-if block, but I have no insight at all into that code, so just leave
it at that.

Change-Id: Ieefd6618cb6b0dc49bc4d2c4733b02be2a8e3f7e
2016-03-04 17:01:45 +01:00
Stephan Bergmann
788afcfb4d -Werror,-Wnon-virtual-dtor
This looks like a real bug, causing leaks in the derived VistaFilePickerImpl
(but harmless for the derived AsyncPickerEvents).

Change-Id: Ic0de3f56574b89fb45eccb09fb27b78427f712d4
2016-03-04 16:57:08 +01:00
Stephan Bergmann
af46bbb2ef Looks unused
PATH_MAX was reported unused on Windows with clang-cl, but the whole block seems
rather a leftover than something that is really required.

Change-Id: I545701ef83de0c2a1d74457778b86b70e334a457
2016-03-04 16:53:00 +01:00
Stephan Bergmann
af04ae6b02 Constness issues
Change-Id: Ib72b6225f20e1e53e9d811ddb2d266f17f57404b
2016-03-04 16:15:29 +01:00
Stephan Bergmann
1590a19cb5 Avoid more warnings in external includes (clang-cl)
Change-Id: Ia0fe12b1159a5fa9fd36b8731bfab178b403e67e
2016-03-04 16:15:29 +01:00
Stephan Bergmann
a80d75c701 -Werror,-Wreorder
Change-Id: I57a5c19143d59cfec42b0109846b7d62fec2b0ad
2016-03-04 16:15:29 +01:00
Stephan Bergmann
f26996bd33 Silence -Werror,-Wnon-virtual-dtor in generated so_activex.h (clang-cl)
Change-Id: If9472d25f469030102b26894793ba45ab0fafaa3
2016-03-04 16:15:28 +01:00
Stephan Bergmann
368d7e9747 Silence -Werror,-Wmissing-field-initializers in END_OBJECT_MAP (clang-cl)
Change-Id: I726679681137e54d55af13ad1d4900525fa60eba
2016-03-04 16:15:28 +01:00
Stephan Bergmann
8fd288d86a -Werror,-Wsign-compare
Change-Id: Ia7b0518a05cda8881ab6feed9852e9f060813b5c
2016-03-04 16:15:28 +01:00