Commit Graph

353771 Commits

Author SHA1 Message Date
Yogesh Bharate
f7bcaa9882 fdo#78957 Corruption - <wp:extent> "cy" height exceed the limit in header.xml
Problem Description:

1. On 19th  May windows daily build
[Build ID: dd0f844728, TinderBox: Win-x86@42, Branch:master],
if we RT document, RT get corrupted due to the exceeding the limit of extend height & width.
2. As per ECMA standard, extend height & width is of type long, but MSO only
support int32.Hence added code changes to check the same.
3. On 20th May windows daily build
[Build ID: f3a46244a0, TinderBox: Win-x86@42, Branch:master],
if we RT document, it get corrupted due to exceeding value of posOffset.
4. Added code changes to make sure posOffset value is within the allowed range.

Reviewed on:
	https://gerrit.libreoffice.org/9424

Change-Id: Ib0b55314f54c51f39a492485992356f71eb062e3
2014-05-22 11:24:46 +02:00
Stephan Bergmann
e93f4d9e43 trunc is C99 only (thus not C++03)
Change-Id: Ia045472386c82369206bfb06dbc8f7a5bde60510
2014-05-22 11:14:31 +02:00
Tor Lillqvist
a27100f43b WaE: virtual function declaration not marked 'SAL_OVERRIDE'
Change-Id: I5b3e785ce50b5959d64c855869533a310e9c277a
2014-05-22 12:12:15 +03:00
Tor Lillqvist
0fcc41e6d1 WaE: unused variable 'bHandled'
While at it, make it use SAL_INFO instead of fprintf.

Change-Id: Id4018819f8f790bef219e5aca3b6bbb5f6acd6aa
2014-05-22 12:12:15 +03:00
Vinaya Mandke
3c87d89bca fdo#78910 Hyperlink and Field start-end mismatch
Originally a Field began inside a hyperlink but ended after the hyperlink.
This causes the corruption in MS Word.

Incremented the field count if the field is added for the current new hyperlink.
Added another variable to store the Field-Count from previous hyperlink.

Added UT for the same.

Change-Id: Id3c3bee1c8ed9c0755f8fff7efd5d1c5662f2c82
Reviewed-on: https://gerrit.libreoffice.org/9421
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-05-22 04:03:21 -05:00
Tor Lillqvist
b56c9aaa80 Avoid including <config_features.h> in <vcl/svapp.hxx>
Change-Id: I711621c89e8f75d4450867e303ccdc8017bcd9d7
2014-05-22 11:57:57 +03:00
Stephan Bergmann
e72d794b39 Moved leak-suppress.txt from dev-tools to core repo
from 196396ffc72bbb1e4f9bbc8ff83432e22bf638af:leak-sanitizer/leak-suppress.txt

Change-Id: Icc7bab46de7a8e63ce149fd0277283f267fb2931
2014-05-22 10:52:06 +02:00
Michael Meeks
344dc7fd06 Make the inserted text more European and sensible for now.
Change-Id: I8b2ecef11362c0fc1dc2b76780140881e769bb89
2014-05-22 09:48:20 +01:00
Michael Meeks
45935fc3fe quit after emitting all the events to allow valgrinding.
Change-Id: Ibee9d8f00008dd0a266db276772d48deb0bd9d18
2014-05-22 09:48:18 +01:00
Michael Meeks
4ea70f09e9 Initial cut at some infinite monkeys work.
Change-Id: I71c7fe027262305893d8eabee94a726f4aa909d6
2014-05-22 09:48:17 +01:00
Andras Timar
c39bf522ee Updated core
Project: translations  b31a57455b1bf9dcffd2cee0a4c79c4f6425dd6c
2014-05-22 03:31:47 -05:00
Miklos Vajna
3bebb3c2d2 oox: fix export of OOXML generator info
This time we did preserve this info, and we should not.

Change-Id: If2ddd7a266cd7da5642dc234411ce34e94bd3384
2014-05-22 10:29:35 +02:00
Stephan Bergmann
c1db9194a5 Record patch upstream notification
Change-Id: I102160cb6fac41f5ba3caa5cb947aebbcd62681f
2014-05-22 10:28:19 +02:00
Ravindra Vidhate
8555c24e06 fdo#78887 <w:br> tag is not being preserved after export.
When we have <w:br> tag continuous like in the following cases...

    "Title: Superstition\v\vComposer: Stevie Wonder\v\v"
    or "\vLyrics: \v"

    where "\n" is internally replaced by "\v" LO.

    Before text "\v" or after text multiple "\v" is not preserved.

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/9420

Change-Id: I2a6d0a7d2382dfbc2f0ab04f150653c9b17bbfd1
2014-05-22 10:19:09 +02:00
Dinesh Patil
c5547beb47 fdo#78886 File getting corrupted after Roundtrip due to fieldChar
In a hyperlink, extra field with fldCharType="end" is getting added
even though there is no begin and separate fldCharType. When hyperlink is
closing pageref was not set to false. Due to which LO was adding extra
end fldCharType.

Change-Id: I0f54ab03c38cec2888cf9a1638ec5435da90099c
Reviewed-on: https://gerrit.libreoffice.org/9414
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-05-22 02:45:58 -05:00
Umesh Kadam
80fd9fb720 fdo#78333 : SdtContent and a Shape overlapping causes corruption
- Normally if there is a case where text/shape is overlapped with (another)
   shape then LO used to write the text and the AlternateContent in the same run.
- This is supported in MSO and there is no visual difference.
- But in case if the SdtContent(with text) is overlapped with the Shape then LO
   processes sdtContent as a text and ends up putting the alternateContent and the
   text in a single run. Ultimately it includes the entire run in a SdtContent,
   which is incorrect.
- The fix checks for the aforementioned scenario and puts them in a different run
   and also restricts the sdtContent being written in an invalid AlternateContent.

Change-Id: I36f4cdb1b583523dd8f717ae094bdf09c7a61f62
Reviewed-on: https://gerrit.libreoffice.org/9374
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-05-22 02:31:53 -05:00
Mukhiddin Yusupov
4c05911b7e fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT
Replaced OSL_ASSERT with SAL_WARN_IF, OSL_TRACE with SAL_INFO

Change-Id: Ia2283c09ac702558fe6ad39e963b0f401ef31de0
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-22 08:29:25 +02:00
Matúš Kukan
197f2016e3 fdo#77313: coinmp: error: format not a string literal and no format arguments
Change-Id: I044f12c4b7b28963d6d491d5e5850ddb59a564c4
2014-05-22 08:10:19 +02:00
Noel Grandin
985f2b8b40 remove unnecessary use of OUString constructor
Change-Id: I7769625289d8bf47fe5905dfb91d3bce9e0f5c85
2014-05-22 07:54:55 +02:00
Noel Grandin
c03efa7c6c loplugin-passbyref: ignore non-base declarations
Only consider base declarations, not overriden ones, or we warn on methods that
are overriding stuff from external libraries.

Change-Id: I08791c96f7adba5997ad237a98e7c08a759042ad
2014-05-22 07:54:54 +02:00
Kohei Yoshida
05d7608616 Label t-test and F-test for their respective dialogs.
Change-Id: I8afab424c051453005432c5291af49eb208dd22c
2014-05-21 22:14:33 -04:00
Kohei Yoshida
f79fa791ce Modify these stats dialogs to have OK and Cancel pair.
Change-Id: I5707aea9965e0d288d4a0e742f5d3cccf08107eb
2014-05-21 22:02:07 -04:00
Kohei Yoshida
251507d097 Keep only "Apply" and "Close".
Change-Id: I963419baec24d7599ddb3e481738cbe6ec4e0a69
2014-05-21 21:35:51 -04:00
Takeshi Abe
2c61edfdf5 Avoid possible memory leaks in case of exceptions
Change-Id: Ic88b22895c2eb4144d31f22a0f7bc98971873262
2014-05-22 09:44:11 +09:00
Tor Lillqvist
8be75a2dc5 Bin "Do not use for the TDF build" warning
Change-Id: I465e23dbe1d84a411c65500875a8821a116ecd2b
2014-05-21 23:32:39 +03:00
Tor Lillqvist
e854b7d188 Make using libc++ non-optional on OS X, always use when possible
Change-Id: I76da768e035176c6469d9473364e9e2c9086ecae
2014-05-21 23:02:20 +03:00
Stephan Bergmann
c01904f91f external/clucene: Avoid InitOrderFiasco
...as reported by AddressSanitizer, where src/core/CLucene/index/IndexWriter.cpp
initializes IndexWriter::MAX_TERM_LENGTH with the value of
DocumentsWriter::MAX_TERM_LENGTH before the latter is initialized in
src/core/CLucene/index/DocumentsWriter.cpp.  But turns out that
IndexWriter::MAX_TERM_LENGTH is completely unused.

Change-Id: Ica01186584ec05a989a13dc58823f4751e8724e2
2014-05-21 21:32:36 +02:00
Tor Lillqvist
51a211ca19 WaE: overriding virtual function declaration not marked 'SAL_OVERRIDE'
Change-Id: I9251488743ec3801367600455ef9a22ad876d2d3
2014-05-21 22:12:02 +03:00
Andras Timar
6c0e47e378 typo: VarP (Sample) -> VarP (Population)
Change-Id: Iaa80388952ac38a088874629688d9cf8a5fd456d
2014-05-21 20:57:05 +02:00
Tomaž Vajngerl
0f9f8e05dc speed-up writer conversion in headless mode
Change-Id: Ie5ccd62608c0643e3c8f019aea136ba74b282274
2014-05-21 20:55:08 +02:00
Kohei Yoshida
27a84e9600 Avoid unnecessary cloning of ScRawToken during token check.
Change-Id: Ia980054437394ef48f7df655411f81d20b9cfa32
2014-05-21 13:25:39 -04:00
Kohei Yoshida
50454f3822 cp#1000072: Skip styles import for external link cache documents.
This reduces external link update time by 10%.

Change-Id: Ic14d9ea7530818f839330a2004f6aa67ef1e831e
2014-05-21 13:25:37 -04:00
Kohei Yoshida
713c2f197b Finer grained ODS import mode selection.
Change-Id: I18520837f8d25103bf8482a0204b8a7b7740feb1
2014-05-21 13:25:31 -04:00
Kohei Yoshida
34789dbff7 Let's use constant uno name for these.
Change-Id: I5e34f4d7561ef7f4f7b8b3b4d7d06cca072831c7
2014-05-21 13:25:30 -04:00
Kohei Yoshida
84db495da0 Let's not use ScDocument as a convenient "anything goes" storage place.
Change-Id: I0ae2f44b89b0db915e78a9b07835000e843d016f
2014-05-21 13:25:29 -04:00
Kohei Yoshida
1df2321393 Turn the mouse cursor to the "wait hand" during the external link update.
Change-Id: I983127828b28c72dd12d4778b88051964e9bceaa
2014-05-21 13:25:25 -04:00
Kohei Yoshida
8d5d877dc9 cp#1000072: Populate cache tables when updating all external links.
This way, even after the loaded doc shells get purged due to timeout,
we won't reload those external documents from disk again.  One caveat
is that we currently don't pre-populate empty cells even if they are
referenced by the host document.

Change-Id: I1de2987836bf2fc5d9d7044b406fb99faa534164
2014-05-21 13:25:24 -04:00
Kohei Yoshida
516bd94247 Localize this string.
Change-Id: I88b205d36eede5e63af46f8581896d980b6aa27d
2014-05-21 13:25:22 -04:00
Kohei Yoshida
65d026f39c cp#1000072: Purge one document shell at a time, to avoid freeze.
Import especially when we have a whole bunch of large-ish documents open
in the background.

Change-Id: I614e6daab3481c09dae47c8407497d77aec40480
2014-05-21 13:25:22 -04:00
Kohei Yoshida
c28aadc7fc cp#1000072: Stop the external doc shell timer while mass-updating.
To prevent collision with the timer wanting to purge the doc cache
while updating external links.

Also, show progress bar, and make the timer interval and the document
cache life span longer.

Change-Id: I325984c8fa68425a2621cf8f9c016463291afc89
2014-05-21 13:25:20 -04:00
Kohei Yoshida
1b243b14e9 cp#1000072: Load external documents when refreshing caches.
Rather than just clearing the existing caches and loading the external
documents on demand as the formula cells gets re-calculated.  This has two
advantages: 1) when the loading itself fails, we can keep the existing cache
rather than turning all affected cells to error cells, and 2) this prevents
on-demand loading after the external linkes get refreshed, which can make
scrolling very slow & painful.

Change-Id: Ie8243f6f94c5e477964413ab83f6b4b746fe3220
2014-05-21 13:25:19 -04:00
Christian Lohmaier
dea4a3b9d7 bump product version to 4.4.0.0.alpha0+
Change-Id: Ic309dbcc49a423bce10e9ea711e8ba0702552816
2014-05-21 19:16:44 +02:00
Christian Lohmaier
c15927f20d the addfile rule doesn't like to continue on a new line
breaks the build otherwise on the baseline

Change-Id: I7a357bc9b541c86746ce3000af429ee024efeec1
2014-05-21 18:57:55 +02:00
Stephan Bergmann
8f97326bdd So ZCodec::ReadAsynchron was wrong in using a persistent mpIStm after all
The fun thing is that with the (only) call-site to ReadAsynchron in
PNGReaderImpl::ImplReadIDAT (vcl/source/gdi/pngread.cxx) passing in rIStm
references to stack-allocated SvMemoryStream instances, mpIStm could point to an
old, destroyed instance from a previous call, but which would have been located
at exactly the same stack address as the currently passed in rIStm, so the wrong
mpIStm->Read call would effectively behaved exactly the same as a correct
rIStm.Read call.

This went unnoticed "since the beginning" until AddressSanitizer's
UseAfterReturn check came along...

Change-Id: I7c75ed2d36a4c24c111d88eff647816bd2c5dbca
2014-05-21 18:29:57 +02:00
Stephan Bergmann
c5a603ce24 ZCodec::mpIStm is apparently(?) effectively only used by ReadAsynchron
...(which can be called multiple times in a row).  But which actually looks
wrong...

Change-Id: I2e4914e6fed8ced383e430699dd462add9da8c08
2014-05-21 18:29:57 +02:00
Eike Rathke
cf53a5d493 we have GetEntryPos(), use it
Change-Id: Iebb19951efa81817793a155164862076d1198e6e
2014-05-21 18:02:09 +02:00
Michael Meeks
34f0e4f425 ODS load perf: 7% of the time re-creating sheet name strings.
No need to create cached versions of stringified sheet tokens for
a given grammar at great for every formula that we compile; defer
until use. Is this a large cost on save ?

Change-Id: I8058ed564dbdc00ff45c02cb483c1a20a48af272
2014-05-21 16:55:41 +01:00
Jan Holesovsky
1554fc9611 libgltf: Updated version.
Change-Id: Ia394ff00421f495757cc2ce55e7b91bfebe715eb
2014-05-21 17:52:28 +02:00
Christian Lohmaier
f9d3abef33 Updated core
Project: translations  b1ee9c9e1542b856cfe2412c6dffeeb5a353810a
2014-05-21 10:46:58 -05:00
Christian Lohmaier
a95d12b547 fdo#70596 dependency problem with debian packages for master/dev builds
debian packages don't cope with release number of 0, so use release 1
for debian master/dev-packages

Change-Id: Id91926322d13bddad3a39faccfee4e131d8956b0
2014-05-21 17:41:06 +02:00