Commit Graph

19593 Commits

Author SHA1 Message Date
Eike Rathke
425e06aa7f Eliminate deprecated SvNumberFormatter::GetDecSep()
Was only one call left..

Change-Id: I140099d77e762e53579b2a5954fe4c59855104da
Reviewed-on: https://gerrit.libreoffice.org/43798
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2017-10-25 12:00:00 +02:00
Ashod Nakashian
141279127b TSCP: support removing paragraph metadata fields
Currently only backspace is supported. No undo yet.

Change-Id: I9a384d19bbaaaab05093d0d4ba74f089c6a4fae1
Reviewed-on: https://gerrit.libreoffice.org/43630
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2017-10-25 04:52:29 +02:00
Ashod Nakashian
3c5fe72ac3 TSCP: separate out paragraph classification name and value in RDF
Change-Id: I99eb764842838b1481483b69d9183e52834e1298
Reviewed-on: https://gerrit.libreoffice.org/43629
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2017-10-25 02:07:42 +02:00
Miklos Vajna
460d8428f9 sw: prefix members of SwUndoTableNumFormat
Change-Id: I06cc74fe2c32f9d76ce6115b779ed764434634b7
Reviewed-on: https://gerrit.libreoffice.org/43734
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-10-24 11:26:22 +02:00
Stephan Bergmann
62f47bb2a5 loplugin:includeform: sw
Change-Id: Ifc3c4c31a31ee7189eeab6f1af30b94d64f2f92a
2017-10-23 22:45:50 +02:00
Tamas Bunth
090e9ecd09 tdf#113284 Check vector length before use
Change-Id: I52b5e6712ba34de0a73bc45ce2262b211b5ac50e
Reviewed-on: https://gerrit.libreoffice.org/43725
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
2017-10-23 22:37:59 +02:00
Caolán McNamara
4fc4b3360d Resolves: tdf#113336 avoid crash during teardown
Change-Id: Icdebd5aca1a2bdaefb904d153ca97a6cc56ac7ff
Reviewed-on: https://gerrit.libreoffice.org/43712
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-23 16:09:08 +02:00
Noel Grandin
b172948268 loplugin:finalclasses in sw
Change-Id: I3b1d689d5eb800a36466376bca735dd31fe4567c
Reviewed-on: https://gerrit.libreoffice.org/43639
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-23 08:16:02 +02:00
Noel Grandin
87a9979c89 overload std::hash for OUString and OString
no need to explicitly specify it anymore

Change-Id: I6ad9259cce77201fdd75152533f5151aae83e9ec
Reviewed-on: https://gerrit.libreoffice.org/43567
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-23 08:15:35 +02:00
Mark Hung
2a65ad5708 tdf#110994 make text-to-text alignment work in standard page mode.
Allow it to align as if there is no grid at all.

Change-Id: I784284a05c1f1323e050e74a5d574a9b11189298
Reviewed-on: https://gerrit.libreoffice.org/43005
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mark Hung <marklh9@gmail.com>
2017-10-22 07:33:48 +02:00
Ashod Nakashian
e4c912f6b0 TSCP: wrap paragraph classification in parens
Change-Id: Ieb0236d7cde2dfde8758040605c7d83d1b905e7b
Reviewed-on: https://gerrit.libreoffice.org/43626
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2017-10-22 07:12:39 +02:00
Noel Grandin
ead920a48a loplugin:redundantcast handle dynamic_cast
Change-Id: I7855c76e820efce96778b1c19ec71dffcc4b4abb
Reviewed-on: https://gerrit.libreoffice.org/43621
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-10-21 15:44:11 +02:00
Miklos Vajna
cd74225dda tdf#113287 sw split sections in tables: fix missing invalidation on sect del
The problem was that the Table1:A2 cell contents was wrapped in a
section that was first split, then all the contents was moved to the
next page, finally the empty master was also moved to the next page. At
this point the master had 0 height, and when it was removed, the follow
section frame had invalid positions, including all of its contents.

Position invalidation for table contents works by first invalidating the
table frame position, which triggers an invalidation chain for both all
next frames and the lower frame. Other lower frames are not invalidated,
that happens when the first lower is calculated, in
SwLayoutFrame::MakeAll(), when the SwLayNotify dtor is executed. This
mechanism did not help us here, as the master section frame was already
marked for deletion, so SwLayoutFrame::MakeAll() was not called for it,
so neither of its next frames were re-positioned.

Fix the bug by explicitly invalidating the position of the next frame in
SwSectionFrame::MakeAll(), for the "return early, this section will be
deleted anyway" case. (The alternative could be to watch out for
0-height sections in the SwLayNotify dtor, but the problem is specific
to section frames, so SwSectionFrame is probably a more expected place
for this change.)

Change-Id: I5ab9475675d25bef7c0647893b1b5909da019f3f
Reviewed-on: https://gerrit.libreoffice.org/43604
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-10-20 19:59:34 +02:00
Andrea Gelmini
68d45e54b0 Fix typos
Change-Id: Ia61b174eb48e0cb80d4b7d404d3b815537ba7cb1
Reviewed-on: https://gerrit.libreoffice.org/43615
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-20 19:27:49 +02:00
Armin Le Grand
387554ef78 RotGrfFlyFrame: Clang error fix
Change-Id: Ifae68d4d5a17446f01c97ce2e94cd0419217259e
2017-10-20 14:13:25 +02:00
Armin Le Grand
9743ecb420 RotGrfFlyFrame: Added interactive rotation mode
The FlyFrames containing a graphic now support an
interactive rotation mode. Added a rotation icon to the
Toolbar close to right/left 90degree rotation. When
activated, works as similar to draw object mode as
possible. Shear and move of the rotation center is
deactivated since not supported. It uses as much of the
existing interaction stuff as possible.

Change-Id: Ia1a4e5c064d8576b114c3fcf3a96ccb42c9372bb
2017-10-20 14:13:24 +02:00
Armin Le Grand
93f5800e18 RotGrfFlyFrame: Corrected position for CropHandles
Position was taken from OuterBound FlyFrame, even in current
master which is wrong. There can be a distance defined between
InnerBound and OuterBound that has to be taken into account

Change-Id: Id88f99c0b218bd26fa1daa5e8215eced00c0baa6
2017-10-20 14:13:24 +02:00
Armin Le Grand
73360bdf0b RotGrfFlyFrame: Implemented Handle Update on rotation change
WIth rotaiton being allowed the handle visualisation may be
dependent on this, so it is necessary to refresh their
visualisation on rotation chnage, e.g. for crop handles

Change-Id: I218e326894999381fc4058b7eba432491a0cf23b
2017-10-20 14:13:23 +02:00
Armin Le Grand
d9b16effed RotGrfFlyFrame: Adapt Crop functionality to rotated Graphic
The FlyFrame which may contain a Graphic needs working Crop,
interactive and in core. Adapted this to work with now possible
rotation, changed common code in svx which has to handle cases
for Draw/Impress/Calc and Writer differently. Tried to use as
much in common as possible. Additionally furter adaptions
to rotation itself.

Change-Id: Ia961e9490e2627c74220b186116f5aa4fcabca78
2017-10-20 14:13:22 +02:00
Armin Le Grand
4ddd74e2d1 RotGrfFlyFrame: Minimal working rotation solution
This version allows rotation (in 10th degrees) and perserves
it over save/load cycles. Rotation of multiples of 90 degree
behave close to original except not changing the contained
Graphic and being adaptable to all kinds of graphic. The
rotated Graphic is displayed centered and under preserved
AspectRatio in the available frame space (so no rotation,
180 degree is identical, 90/-90 is identical with 1:1 ratio
of the graphic)

Change-Id: I54b3385f709ee0d34a55324aca919dcd2ce0c009
2017-10-20 14:13:21 +02:00
Armin Le Grand
a42b0985c7 RotGrfFlyFrame: Initial adaptions
To allow free rotation of Graphic FlyFrames in Writer,
several adaptions are necessary. This change takes care
of all needed changes to internally support a freely
definable rotation angle for that case. Save/Load round
trip is working, the graphic does no longer get modified
and added in 90-degree-changed state to the object, the
original will be preserved. Support for needed slot in
core/ui is implemented. Rotation can be applied from
Menus/Toolbars in the known 90/180 degree steps. Added
a slot/Button/command to reset rotation in these cases.
Added support in Sidebar to rotate using the rotation
wheel and/or numeric field. These fields and support added
to Image TabPage, too, fully functional.
Missing now is a solution for displaying the rotated
Graphic. For now, it just gets rotated, but this will not
be the final state of this change.

Change-Id: I6f3b85ebb5be2b4ad3311c536d54f27a37a494e7

RotGrfFlyFrame: Linux build adaptions

Change-Id: I365287ecd6525b1972e8436d61332f7121d88649
2017-10-20 14:13:20 +02:00
Miklos Vajna
28584366a4 sw layout xml dump: show validity flags of SwFrame
Change-Id: I48ef2d7b2f88421c90a5128785e21868dc2cef32
Reviewed-on: https://gerrit.libreoffice.org/43589
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-10-20 13:28:12 +02:00
Miklos Vajna
58843f4db5 sw: fix unusual boolean prefix for pointer in tabfrm
Change-Id: I0a0e896c57e8b6d659e0038bbbd89996aedb1147
Reviewed-on: https://gerrit.libreoffice.org/43588
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-10-20 13:27:37 +02:00
Miklos Vajna
6608fcec4a sw: drop temporary debug code in sectfrm
Change-Id: Ic9a7ecae8533adc76d440525e9f7a7cafa272be8
Reviewed-on: https://gerrit.libreoffice.org/43587
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-10-20 13:27:08 +02:00
Noel Grandin
b42c7f2def use std::unique_ptr in SwSortOptions
Change-Id: I5854e1492388d765a0503193a45f7c0f1bd14004
Reviewed-on: https://gerrit.libreoffice.org/43528
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-20 11:31:47 +02:00
Noel Grandin
ed3d2e9863 use std::unique_ptr in SwDocUpdateField
Change-Id: I9d6eba5e2714a29fd3a2ad301298ad8590a4af36
Reviewed-on: https://gerrit.libreoffice.org/43549
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-19 20:38:54 +02:00
Michael Stahl
c79da868c0 sw: fix odd condition in SwpHints::MergePortions()
All of the RES_CHRATR_* items are poolable, hence we have
(pItem1 != pItem2) == (pItem1->Which() != pItem2->Which() || *pItem1 != *pItem2)

Move the redundant check to an assert() so we notice in case
somebody adds a new non-poolable RES_CHRATR.

Thanks to ccsheller for pointing me to this condition.

Change-Id: I9e0634946b8bede3f483bb8997f69de05beae64c
2017-10-19 14:27:52 +02:00
Noel Grandin
cdd4b528a4 use rtl::Reference in SwChartDataSequence
instead of manual acquire/release

Change-Id: I2d827b2f785b34b77adb95ac62afb885bb423879
Reviewed-on: https://gerrit.libreoffice.org/43478
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-18 10:41:13 +02:00
Noel Grandin
c85a261695 use rtl::Reference in SwOLEObj
instead of manual ref-counting

Change-Id: I26e55ec7803e60f090f093b5584faec74ebbb8bb
Reviewed-on: https://gerrit.libreoffice.org/43419
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-17 08:58:24 +02:00
Ashod Nakashian
0e30d1c9a7 TSCP: remove old classification fields before adding new
Change-Id: I282fc52f0b91b65a5e40a5e13b46fb65a1783176
Reviewed-on: https://gerrit.libreoffice.org/43428
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2017-10-16 22:25:26 +02:00
Ashod Nakashian
54b658d26e TSCP: return empty when a propery is not found
Instead of throwing, since we don't want to display
empty properties in the header/footer.

Change-Id: I6ac205b7ac64ed61487472e0334260bacc2503df
Reviewed-on: https://gerrit.libreoffice.org/43427
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2017-10-16 22:23:51 +02:00
Miklos Vajna
a69f48d923 tdf#113153 sw: fix layout loop with split in-table sections
The problem was in SwFrame::GetNextSctLeaf(): it called WrongPageDesc()
to find out if pLayLeaf is a container that is on an acceptable page,
but it was too aggressive, and discarded a split table cell that was in
a follow table (so later it'll be moved to a next page), but on the same
page.

The result was that a new page was created, but later in
::doInsertPage() we noticed this unnecessary page and removed it. The
effect of that was that the in-progress layout action's m_bIsAgain flag
was set to true, restart the layout again and again.

Given that in-table split sections never need to create a new page frame
for the follow section (the cell does this for us already), just don't
discard pLayLeaf when WrongPageDesc() finds it and we're in the split
section-in-table case.

Change-Id: Iea98a26c14fc1fb3154378eab24daa2fd6e84459
Reviewed-on: https://gerrit.libreoffice.org/43429
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-10-16 21:40:33 +02:00
Stephan Bergmann
bcccdc71cb Fix merge conflict
between 0716aca251 "tscp: move getting the current
policy type to class. helper" on the one hand and
217dd15374 "TSCP: edit paragraph classification"
and c140d8d973 "TSCP: paragraph classification
support" on the other.

Change-Id: I9c399b0224c485d71e39ad547be2f9b51fbbecc9
2017-10-16 15:55:44 +02:00
Tomaž Vajngerl
0716aca251 tscp: move getting the current policy type to class. helper
Change-Id: I54afcca1c1fc1a27458c75ab9fd3405d6f7e9239
Reviewed-on: https://gerrit.libreoffice.org/43360
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-10-16 15:32:34 +02:00
Miklos Vajna
f57604a4a8 sw dbg_lay: make it easer to match log entries with code locations
Also warn when logging stops due to a limit, not because the layout
finished.

Change-Id: Ifd44901602edec001839ab4ee88f459b45e36da6
Reviewed-on: https://gerrit.libreoffice.org/43362
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-10-13 12:59:42 +02:00
Miklos Vajna
3672cdd359 sw: resurrect dbg_lay functionality
Example instdir/program/dbg_lay.ini:

	# 0x0007ffff
	[record] 524287

This logs all functions and all frames. To have it:

1) Don't mention hex values in the example, support for this was removed
in ef513fd4b0 (remove unnecessary use of
OString::getStr, 2017-05-26).

2) "all frame IDs" is represented with a nullptr, so don't clear it
unconditionally.

3) Fix two other regressions from bytestring conversion in commit
778ef20d74 (sw now ByteString free except
for windows related ones, 2011-11-04).

(Additionally you need a dbgutil build, dbg_lay.go has to exists in the
same dir, and output goes to dbg_lay.out in the same dir.)

Change-Id: Ida0f3032f11225f1d079cdcbb05ec64c42a71e5d
Reviewed-on: https://gerrit.libreoffice.org/43347
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-10-12 23:47:20 +02:00
Stephan Bergmann
a636d2ee19 Revert "Revert "Fix -fsanitize=signed-integer-overflow""
This reverts commit ce057e662b2e10e111353e9461c3c01434ddbb0f; the original
63d845dc88 appears to be useful after all to make
UBSan 'instdir/program/soffice sw/qa/extras/uiwriter/data/tdf112860.fodt'
succeed after 'make -O -j12 ExternalPackage_fonts_liberation.clean', see
tdf#112942.
2017-10-09 16:20:30 +02:00
Stephan Bergmann
8b490c1724 tdf#112942: Apparently, rTab.GetFollow() can change in between
...the calls to TableSplitRecalcLock and TableSplitRecalcUnlock

Change-Id: Iacb0d88ccb323fb248129daeeeb207b25f148753
2017-10-09 12:46:10 +02:00
Miklos Vajna
1b0e134b1e sw: prefix members of SwFieldPortion
Change-Id: I1093c10a903a9b028d74503560115692c50e0e9e
Reviewed-on: https://gerrit.libreoffice.org/43267
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-10-09 11:32:23 +02:00
Vasily Melenchuk
b98c65538e tdf#90789 Anchored frames and shapes are identified by name/SdrObjects
Previously shapes/frames were identified either by name or by SdrObject,
but in some cases name can be empty. New approach is to use names if they
exist and SdrObject reference if name is empty.

This is just a partial fix for mentioned TDF issue.

Change-Id: I3bd53f07fdb3fe69b2898d855eda48b6534cd75d
Reviewed-on: https://gerrit.libreoffice.org/43176
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-10-09 01:58:01 +02:00
Julien Nabet
d7a22815e8 Replace some lists by vectors (sw)
Change-Id: Ie2f20b05ce987bb907c6f455da57bfc734dcb2da
Reviewed-on: https://gerrit.libreoffice.org/43244
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-08 20:48:00 +02:00
Julien Nabet
9b8f1aa0b0 Replace list by vector in frmtool (sw)
Change-Id: Ic29b8497227abfe1f407ad548037a8eaec318bcc
Reviewed-on: https://gerrit.libreoffice.org/43243
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-08 20:33:58 +02:00
Julien Nabet
8b79b7f1e3 cid#1418978/1418979: invalidate_iterator/Copy-paste
Since https://cgit.freedesktop.org/libreoffice/core/commit/?id=b6d6591fafb8ad2e59a27ff1ac6b234d879b4cf7

Change-Id: If7c3350d9f6e6c16ef59176006ca2bf2187b674e
Reviewed-on: https://gerrit.libreoffice.org/43228
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins <ci@libreoffice.org>
2017-10-07 14:35:42 +02:00
Mike Kaganski
da82b030e8 sw: always use "" for includes in current source's directory
Change-Id: Ida715fad0c4587a9566184180bf159da12470dd7
Reviewed-on: https://gerrit.libreoffice.org/43207
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-10-07 13:42:34 +02:00
Mike Kaganski
4d31f2e160 Remove redundant comparison
Change-Id: I51820119f9dd6bacb852680b48f0b052ef6cb7e9
Reviewed-on: https://gerrit.libreoffice.org/43214
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-10-07 12:21:11 +02:00
Mike Kaganski
053827916e Replace a magic number with its syntactic meaning
Change-Id: I535a7317f0797ef63294df05463a88e9e8d7aa10
Reviewed-on: https://gerrit.libreoffice.org/43213
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-07 08:36:53 +02:00
Michael Stahl
05c704d3be sw: fix infinite grammar checking idle loop
The grammar checker always wants to be started in DoIdleJobs(),
even if all paragraphs are already marked as checked.

This is because there is currently no call anywhere of
SwRootFrame::SetNeedGrammarCheck(false) to reset the flag
and prevent DoIdleJobs from trying to start the grammar checker.

This call was already there before but was removed without
any justification in commit 9160fe814a.

This has become an infinite loop in several Junit tests with commit
53da556c60.

Change-Id: Ibe7ad93442070aac0577725d044281912307d9e8
2017-10-06 21:51:48 +02:00
Stephan Bergmann
ce057e662b Revert "Fix -fsanitize=signed-integer-overflow"
This reverts commit 63d845dc88.  The immediate
problem is fixed with 9dd0c0fcc1 "Missing
dependency" now.  For the general issue that loading
sw/qa/extras/uiwriter/data/tdf112860.fodt fails with a UBSan error or a null
deref SIGSEGV when fonts are missing see
<https://bugs.documentfoundation.org/show_bug.cgi?id=112942>
"SwUiWriterTest::testTdf112860 crashes when Liberation fonts are missing".
2017-10-06 18:26:15 +02:00
Jan-Marek Glogowski
53da556c60 Don't schedule the Idle job for busy documents
This refactors DocumentTimerManager to export the busy status
independent of the Idle function. This way it can be ignored in
the Scheduler while the document is busy,

Change-Id: Icec2075d3338ad8dd4440678eb0570d7fe887778
Reviewed-on: https://gerrit.libreoffice.org/43197
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2017-10-06 15:03:35 +02:00
Stephan Bergmann
63d845dc88 Fix -fsanitize=signed-integer-overflow
during CppunitTest_sw_uiwriter (see below), using o3tl::saturating_add similar
to 97dcb242f5 "Fix -fsanitize=signed-integer-
overflow".

It replaces exactly the one use of SwIncrement that caused problems now.
Probably other uses of those FirstMinusSecond, SecondMinusFirst, SwIncrement,
and SwDecrement should be adapted, too.

> sw/source/core/layout/newfrm.cxx:53:17: runtime error: signed integer overflow: 23547 + 9223372036854755850 cannot be represented in type 'long'
>     #0 0x7f00fe99e438 in SwIncrement(long, long) sw/source/core/layout/newfrm.cxx:53:17
>     #1 0x7f00feb272bc in SwTabFrame::MakeAll(OutputDevice*) sw/source/core/layout/tabfrm.cxx:2311:44
>     #2 0x7f00fe79d883 in SwFrame::PrepareMake(OutputDevice*) sw/source/core/layout/calcmove.cxx:312:29
>     #3 0x7f00feb1cbff in SwContentFrame::CalcLowers(SwLayoutFrame*, SwLayoutFrame const*, long, bool) sw/source/core/layout/tabfrm.cxx:1454:19
>     #4 0x7f00feb2eded in lcl_RecalcRow(SwRowFrame&, long) sw/source/core/layout/tabfrm.cxx:1581:22
>     #5 0x7f00feb186d5 in lcl_RecalcSplitLine(SwRowFrame&, SwRowFrame&, long, long) sw/source/core/layout/tabfrm.cxx:682:5
>     #6 0x7f00feb13900 in SwTabFrame::Split(long, bool, bool) sw/source/core/layout/tabfrm.cxx:1268:16
>     #7 0x7f00feb20ed9 in SwTabFrame::MakeAll(OutputDevice*) sw/source/core/layout/tabfrm.cxx:2387:47
>     #8 0x7f00fe79df2b in SwFrame::PrepareMake(OutputDevice*) sw/source/core/layout/calcmove.cxx:346:5
>     #9 0x7f00fe945f70 in SwLayAction::FormatLayoutTab(SwTabFrame*, bool) sw/source/core/layout/layact.cxx:1467:15
>     #10 0x7f00fe93e6ca in SwLayAction::FormatLayout(OutputDevice*, SwLayoutFrame*, bool) sw/source/core/layout/layact.cxx:1360:32
>     #11 0x7f00fe93e95b in SwLayAction::FormatLayout(OutputDevice*, SwLayoutFrame*, bool) sw/source/core/layout/layact.cxx:1363:29
>     #12 0x7f00fe9329c9 in SwLayAction::InternalAction(OutputDevice*) sw/source/core/layout/layact.cxx:550:25
>     #13 0x7f00fe92f71a in SwLayAction::Action(OutputDevice*) sw/source/core/layout/layact.cxx:341:5
>     #14 0x7f00ffa7bcfd in SwViewShell::ImplEndAction(bool) sw/source/core/view/viewsh.cxx:280:17
>     #15 0x7f00fd6e5671 in SwViewShell::EndAction(bool) sw/inc/viewsh.hxx:605:9
>     #16 0x7f00fd696865 in SwCursorShell::EndAction(bool, bool) sw/source/core/crsr/crsrsh.cxx:258:18
>     #17 0x7f0100a66752 in SwView::OuterResizePixel(Point const&, Size const&) sw/source/uibase/uiview/viewport.cxx:1116:22
>     #18 0x7f01177ff562 in SfxViewFrame::DoAdjustPosSizePixel(SfxViewShell*, Point const&, Size const&, bool) sfx2/source/view/viewfrm.cxx:1490:18
>     #19 0x7f0117812660 in SfxViewFrame::Resize(bool) sfx2/source/view/viewfrm.cxx:2275:17
>     #20 0x7f01178262e9 in SfxFrameViewWindow_Impl::Resize() sfx2/source/view/viewfrm2.cxx:73:17
>     #21 0x7f01397ce063 in vcl::Window::ImplCallResize() vcl/source/window/event.cxx:522:5
>     #22 0x7f0139c1458e in vcl::Window::Show(bool, ShowFlags) vcl/source/window/window.cxx:2274:13
>     #23 0x7f01177b8313 in SfxBaseController::ConnectSfxFrame_Impl(SfxBaseController::ConnectSfxFrame) sfx2/source/view/sfxbasecontroller.cxx:1250:24
>     #24 0x7f01177b6773 in SfxBaseController::attachFrame(com::sun::uno::Reference<com::sun::frame::XFrame> const&) sfx2/source/view/sfxbasecontroller.cxx:550:13
>     #25 0x7f01177708ca in (anonymous namespace)::SfxFrameLoader_Impl::impl_createDocumentView(com::sun::uno::Reference<com::sun::frame::XModel2> const&, com::sun::uno::Reference<com::sun::frame::XFrame> const&, comphelper::NamedValueCollection const&, rtl::OUString const&) sfx2/source/view/frmload.cxx:599:18
>     #26 0x7f011776c4dc in (anonymous namespace)::SfxFrameLoader_Impl::load(com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&, com::sun::uno::Reference<com::sun::frame::XFrame> const&) sfx2/source/view/frmload.cxx:716:13
>     #27 0x7f00cd09827c in framework::LoadEnv::impl_loadContent() framework/source/loadenv/loadenv.cxx:1087:37
>     #28 0x7f00cd0914f3 in framework::LoadEnv::startLoading() framework/source/loadenv/loadenv.cxx:372:20
>     #29 0x7f00cd08f794 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&) framework/source/loadenv/loadenv.cxx:158:14
>     #30 0x7f00cd146748 in framework::Desktop::loadComponentFromURL(rtl::OUString const&, rtl::OUString const&, int, com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&) framework/source/services/desktop.cxx:618:12
>     #31 0x7f00cd14690c in non-virtual thunk to framework::Desktop::loadComponentFromURL(rtl::OUString const&, rtl::OUString const&, int, com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&) framework/source/services/desktop.cxx
>     #32 0x7f00f5b07b89 in unotest::MacrosTest::loadFromDesktop(rtl::OUString const&, rtl::OUString const&, com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&) unotest/source/cpp/macros_test.cxx:50:60
>     #33 0x7f011ff48982 in SwModelTestBase::loadURL(rtl::OUString const&, char const*, char const*) sw/qa/extras/inc/swmodeltestbase.hxx:668:23
>     #34 0x7f011ff49579 in SwModelTestBase::load(rtl::OUString const&, char const*, char const*) sw/qa/extras/inc/swmodeltestbase.hxx:639:16
>     #35 0x7f011fe18545 in SwUiWriterTest::createDoc(char const*) sw/qa/extras/uiwriter/uiwriter.cxx:448:9
>     #36 0x7f011fffcbb2 in void std::_Bind<std::_Mem_fn<void (SwUiWriterTest::*)()> (SwUiWriterTest*)>::__call<void, , 0ul>(std::tuple<>&&, std::_Index_tuple<0ul>) /usr/lib/gcc/x86_64-redhat-linux/6.4.1/../../../../include/c++/6.4.1/functional:933:11
>     #37 0x7f011fffc989 in void std::_Bind<std::_Mem_fn<void (SwUiWriterTest::*)()> (SwUiWriterTest*)>::operator()<, void>() /usr/lib/gcc/x86_64-redhat-linux/6.4.1/../../../../include/c++/6.4.1/functional:991:17
>     #38 0x7f0159d6bd20 in CppUnit::TestCaseMethodFunctor::operator()() const workdir/UnpackedTarball/cppunit/src/cppunit/TestCase.cpp:32:5
>     #39 0x7f0159d3ceed in CppUnit::ProtectorChain::ProtectFunctor::operator()() const workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:20:25
>     #40 0x7f0159d3ceed in CppUnit::ProtectorChain::ProtectFunctor::operator()() const workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:20:25
>     #41 0x7f014e24e450 in (anonymous namespace)::Prot::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx:63:16
>     #42 0x7f0159d3ceed in CppUnit::ProtectorChain::ProtectFunctor::operator()() const workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:20:25
>     #43 0x7f0159cd271b in CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) workdir/UnpackedTarball/cppunit/src/cppunit/DefaultProtector.cpp:15:12
>     #44 0x7f0159d3ceed in CppUnit::ProtectorChain::ProtectFunctor::operator()() const workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:20:25
>     #45 0x7f0159d3652c in CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:86:18
>     #46 0x7f0159dce8f0 in CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) workdir/UnpackedTarball/cppunit/src/cppunit/TestResult.cpp:182:28
>     #47 0x7f0159d6a2fc in CppUnit::TestCase::run(CppUnit::TestResult*) workdir/UnpackedTarball/cppunit/src/cppunit/TestCase.cpp:91:13
>     #48 0x7f0159d6e1f7 in CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:64:30
>     #49 0x7f0159d6d3e8 in CppUnit::TestComposite::run(CppUnit::TestResult*) workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:23:3
>     #50 0x7f0159d6e1f7 in CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:64:30
>     #51 0x7f0159d6d3e8 in CppUnit::TestComposite::run(CppUnit::TestResult*) workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:23:3
>     #52 0x7f0159dfcf15 in CppUnit::TestRunner::WrappingSuite::run(CppUnit::TestResult*) workdir/UnpackedTarball/cppunit/src/cppunit/TestRunner.cpp:47:27
>     #53 0x7f0159dcd376 in CppUnit::TestResult::runTest(CppUnit::Test*) workdir/UnpackedTarball/cppunit/src/cppunit/TestResult.cpp:149:9
>     #54 0x7f0159dfde86 in CppUnit::TestRunner::run(CppUnit::TestResult&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) workdir/UnpackedTarball/cppunit/src/cppunit/TestRunner.cpp:96:14
>     #55 0x535621 in (anonymous namespace)::ProtectedFixtureFunctor::run() const sal/cppunittester/cppunittester.cxx:319:20
>     #56 0x5336e4 in sal_main() sal/cppunittester/cppunittester.cxx:469:20
>     #57 0x533112 in main sal/cppunittester/cppunittester.cxx:376:1
>     #58 0x7f0158225430 in __libc_start_main /usr/src/debug/glibc-2.24-66-gd5a4092c36/csu/../csu/libc-start.c:289
>     #59 0x438929 in _start (workdir/LinkTarget/Executable/cppunittester+0x438929)

Change-Id: Ib3dd6317062b39625295ae0b51c30d3826918b35
Reviewed-on: https://gerrit.libreoffice.org/43191
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-10-06 13:49:19 +02:00