summaryrefslogtreecommitdiff
path: root/filter
AgeCommit message (Collapse)Author
2017-11-29remove UL/L suffixes from integer constants on the RHS of expressionsNoel Grandin
Reviewed-on: https://gerrit.libreoffice.org/41237 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 2e8acde112e1c6754df26902e79a78346ba45a2d) Change-Id: I899a8126c9d971601fea6c77eca165718aea0ac5 Reviewed-on: https://gerrit.libreoffice.org/45452 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2017-11-28convert BmpConversion to scoped enumNoel Grandin
and drop unused 4BIT_TRANS and 1BIT_MATRIX enumerators Also fix a bug in x11::convertBitmapDepth where we were incorrectly passing BmpConversion enumeratirs to ReduceColors Reviewed-on: https://gerrit.libreoffice.org/34062 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit b5699cd01b6a52906880c107bac6f3802ea7353d) Change-Id: I903c6866750e46ee752e10a17c05fcaaf6b11242
2017-11-28convert BmpCombine to scoped enum and drop unusedNoel Grandin
Change-Id: Ic67474683a25a25e5753777f4bbbeded6ceba414 Reviewed-on: https://gerrit.libreoffice.org/33793 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 52360bf8dd567598593cb212ac85f0c919315618)
2017-11-28loplugin:useuniqueptr extend to check local varsNoel Grandin
just the simple and obvious case for now, of a local var being allocated and deleted inside a single local block, and the delete happening at the end of the block Reviewed-on: https://gerrit.libreoffice.org/33749 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 2489000d3fd66319a8355fd4e37cfdfda47296d0) Change-Id: I3a7a094da543debdcd2374737c2ecff91d644625
2017-07-19sd pptm: Add a separate PPTM filter.Jan Holesovsky
Similarly to commit 697173f6fdfae581022cfdb5ec5171c5a3be58f0, we have to preserve the correct content-type which is not the same for PPTX and PPTM. This commit also changes sdfilt.component to use the constructor feature. Change-Id: I4b334540ec07a53d308e6b9dd6403294842bddf8
2017-06-28Watermark: tdf#91687 correct size in the .docSzymon Kłos
Export: * Watermarks saved using Writer were very small in the MSO. Export fUsegtextFStretch property in the Geometry Text Boolean Properties. * tdf#91687: SnapRect contains size of Watermark after rotation. We have to export size without rotation. Import: * When import set height depending on used font and width. Text will keep the ratio. Remember the padding for export. * added unit test * introduced enum to avoid magic numbers for stretch and best fit properties. Change-Id: I3427afe78488d499f13c543ca401c096161aaf34 Reviewed-on: https://gerrit.libreoffice.org/39355 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2017-06-27ofz#2332 fix dangling pCObjCaolán McNamara
Change-Id: Ifa62b1ce2aefa939cfceb2e110d126b785cb6e26 Reviewed-on: https://gerrit.libreoffice.org/39035 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit d185c58fcf8d7b82bc84b16b56020c3fbaf2a876)
2017-06-12ofz: fix remaining length checkCaolán McNamara
Change-Id: I1788ae2a15823b0dc165ad1a99bd0f2aac0bcaf1 Reviewed-on: https://gerrit.libreoffice.org/38363 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit e5a25e6b01490cf14dfc6af019fdb0896b19a76d)
2017-06-01sw: add separate DOCM filterMiklos Vajna
This way at export time we can preserve the correct content-type, which isn't the same for DOCX and DOCM. Reviewed-on: https://gerrit.libreoffice.org/38298 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit 697173f6fdfae581022cfdb5ec5171c5a3be58f0) Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport9.cxx sw/source/filter/ww8/docxexportfilter.cxx Change-Id: I08fa734c72fab7400bd327a07a760839556dbf6f
2017-05-31tdf#108056 PDF export: work with double page sizeMiklos Vajna
Our coordinate system has the origo in the top left corner, PDF's one is at the bottom left corner. So the page height affects the coordinate of all widths and y positions. That page width is 870.25 in the case of the bugdoc, but it was handled as 870 due to the integer rounding. The coordinates and heights are now closer to the expected ones. (cherry picked from commit a05dc747caf5b8fef6bd95a999cb6098f2b4dbc7) Conflicts: include/vcl/pdfwriter.hxx Change-Id: I9c7d77298df3850bbc170c9ace18120900d7e3fa
2017-05-30Related tdf#107696: deal with non empty header without numberJulien Nabet
See first case of https://bugs.documentfoundation.org/show_bug.cgi?id=107696#c11 Change-Id: Ic76301cb10ae891901be7dd5a385356c1cc0523b Reviewed-on: https://gerrit.libreoffice.org/37694 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr> (cherry picked from commit 296c2296f5565556eea9fab51563050f28bbcafc) Reviewed-on: https://gerrit.libreoffice.org/37792 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 6ee4771aff5d756f45014b88aebbcfb25b5cadfe)
2017-05-30tdf#107696: fix exports Heading style numbersJulien Nabet
by taking into account text:is-list-header="true" (thank you for having pointing at this attribute of header Regina!) Change-Id: Ia0d9e0042e7ca3f31284c85f6b5336e1434bc0e6 Reviewed-on: https://gerrit.libreoffice.org/37655 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> (cherry picked from commit d67747c59c22e0346e13560810b9f3bf6c698428) Reviewed-on: https://gerrit.libreoffice.org/37661 Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 9b4c1e9d85445f4ddfb45359ad661d4826fe6a3c)
2017-05-18ofz#1542 check remaining size of destCaolán McNamara
Change-Id: I37cff45afdb242b31919a8a02e737424e2ecfd52 Reviewed-on: https://gerrit.libreoffice.org/37634 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 9304956306025194a671a90d4559746660a27010)
2017-05-18tdf#107709 filter: MSO2003XML import: fix invalid OLE lengthsMichael Stahl
The oleLength was -28160 for the bugdoc, so i guess the shifting of signed chars there is perhaps not ideal, better upcast and shift as unsigned. Change-Id: I068013a10e18043c1534c7c61be8ff8a5556d460 (cherry picked from commit 088b898856a82d7ac4851a6e7dfe4d189d881f8e) Reviewed-on: https://gerrit.libreoffice.org/37486 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 5d474fc14581eaceb1defa7eabf5bcd335143b2d)
2017-05-05tdf#106525: fix date importMike Kaganski
Change-Id: I81c1cc58b0201412f650854fa9ebf920b4df68bd Reviewed-on: https://gerrit.libreoffice.org/37302 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 8d10be803ce0598489aa102953473fb9ea95db6e) Reviewed-on: https://gerrit.libreoffice.org/37304 Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-05-04ofz#1284 InsertBundle may delete the bundle that pMarkerBundle is pointing toCaolán McNamara
Change-Id: Ic8bd538e80469b672ddd9c5fcceb2f5aac81d2a1 Reviewed-on: https://gerrit.libreoffice.org/37052 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 217e9a5b581d59bc70ea4cb71a7da31411812156)
2017-04-07tdf#51358 Add Support for more slide transitions to Impress SVG ExportRohan Kumar
Ported the class WaterfallWipe. Change-Id: I4856243c4b29e45f16ee780db42c2f742a6b1dc1 Reviewed-on: https://gerrit.libreoffice.org/35107 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-07tdf#51358 Support for SweepWipe transition in SVG ExportRohan Kumar
Ported the class SweepWipe Change-Id: Ia67b50ba53900efab977a4cb284f7d1514ff8113 Reviewed-on: https://gerrit.libreoffice.org/34906 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-07tdf#51358 Add Support for FanWipe classRohan Kumar
Ported the class FanWipe In SVG engine. Change-Id: I8a067f2df32968bb00d5b3adc020bc9ee8296f33 Reviewed-on: https://gerrit.libreoffice.org/33910 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-07tdf#51358 Support for ZigZag-Wipe transition animation in SVG supportRohan Kumar
Ported classes ZigZagWipe and BarnZigZagWipe Change-Id: Ib15929c24dc952944ac4de5b71c541cdd99affcc Reviewed-on: https://gerrit.libreoffice.org/33763 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-07Fixed my mistake: fix flipOnYAxis for SVGPathElementRohan Kumar
Fix flipOnYAxis() method which was the cause of some SnakeWipePath transition subtypes not working. Change-Id: I1bea5bdddf6c6312384f59d8614a0a2bc1a6e3ba Reviewed-on: https://gerrit.libreoffice.org/35191 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-07tdf#51358 Support for BarnDoorWipe transition animation in SVG supportRohan Kumar
ported the class BarnDoorWipe Change-Id: I10c98cf575c76bb0c96a9622721d1ab368941dca Reviewed-on: https://gerrit.libreoffice.org/33323 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-07Fix flip issue in Snake animation subtypeRohan Kumar
Fix flipOnYAxis function, alongwith minor tweaks. Change-Id: If8958de9eb651a15f86963f2e40eb364011ce41f Reviewed-on: https://gerrit.libreoffice.org/33918 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-04-07ofz: check bounds on readCaolán McNamara
Change-Id: I07779bec876b90e36f20a81d6dbf06ae727edf85 (cherry picked from commit fb05611064e12c8eda09bc32c42544cde8c2ab49) Reviewed-on: https://gerrit.libreoffice.org/36018 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit daa13c049f1d527e51a776f75748ddfba4e9666b)
2017-04-06sType and sSubType are already normalized to ASCII lower caseMike Kaganski
... upon successful return from INetContentType::parse Change-Id: I8a0c50c1c655477138578e59031b64fb6b2b7218 Reviewed-on: https://gerrit.libreoffice.org/36129 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 97f048e633f07655eda000ae4f4da818c935091e) Reviewed-on: https://gerrit.libreoffice.org/36146 Tested-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 6e336c43a239f515cc882a3da1bad63e3507b230) Reviewed-on: https://gerrit.libreoffice.org/36236
2017-04-06tdf#106955: Detect XML by MediaTypeMike Kaganski
According to Extensible Markup Language (XML) 1.0 (see https://www.w3.org/TR/2008/REC-xml-20081126/#sec-prolog-dtd), all parts of XML prolog (including XML declaration) are optional, so XML stream without <?xml ... ?> is well-formed (though not valid). XMLFilterDetect uses only XML declaration to detect if the file is to be processed further. However, this creates problems with said documents. This commit checks if the document has MediaType set to one of known XML media types, in case when the check for XML declaration failed. Change-Id: I31627c0e3a39bee241f609650280ebac3f1cede8 Reviewed-on: https://gerrit.libreoffice.org/36101 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 156f778593ca9c57845076a88c6b544a63e12e7a) Reviewed-on: https://gerrit.libreoffice.org/36133 Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-04-06tdf#106525: Implement an XSLT import filter for ADO rowset XMLMike Kaganski
There are online services and management systems (like SharePoint) that allow to export datasets in ADO rowset XML format ([MS-PRSTFR], https://msdn.microsoft.com/en-us/library/cc313112). Usually they are intended to be open with MS Excel as a spreadsheet (with autofilter). This allows to open this data in Calc. Change-Id: I495cd790138bdd6bd24630c0f422a0c8b4e3d0fb Reviewed-on: https://gerrit.libreoffice.org/35159 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit d6323a2180cf51f9bd6a62d50503c2e0ef0964f1) Reviewed-on: https://gerrit.libreoffice.org/36131 Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-03-30vcl PDF export, norefxobj: add UI for thisMiklos Vajna
Disable the "use reference XObjects" (old behavior) by default, but keep it as an option in case someone wants it. Summary till the help is updated: the old way is simpler code, so it's always correct, but really only Acrobat supports that markup. The new way is supported by all readers, but more complex, so it's more likely it goes wrong. Change-Id: I4769474f29d98412be496a0aa4e8254ae4f0919e Reviewed-on: https://gerrit.libreoffice.org/35826 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit 9c944b0d1bff9a0ab1b7e8454c9ac5e7194aa533)
2017-03-30tdf#106693 vcl PDF export: initial UseReferenceXObject optionMiklos Vajna
It's still on, but in experimental mode start work towards the ability to not use that markup. Change-Id: Idf11c0e0a3c61ad93af331346ec7107304f6dc0f Reviewed-on: https://gerrit.libreoffice.org/35538 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit 5f4826d89bfa1398b16fc85cf593ff58ce5e36a9)
2017-03-29valgrind: use of uninitialized valuesCaolán McNamara
Change-Id: I5b8c6d4d4576fd88dbffdfc710cbd9b2e9429942 (cherry picked from commit b7152aff51665bc802af66e6e599a89e0344c92f) Reviewed-on: https://gerrit.libreoffice.org/35805 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 8337a9b186abc5a3393127227ec727f019f09dc5)
2017-03-24ofz#875 limit depth to max legal depthCaolán McNamara
Change-Id: Icbe9339148dc4aeb31c160e976385e3bcaef75b6 (cherry picked from commit 30e2b7203963af215c9aaaec12383e0d5e1f6a7f) Reviewed-on: https://gerrit.libreoffice.org/35259 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 3f9500481902f11349ce8fee523824abe445cc04)
2017-03-24ofz: use after freeCaolán McNamara
Change-Id: I6d3f9108b02149165b020fc9c6677880456a1ef4 Reviewed-on: https://gerrit.libreoffice.org/35299 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 958280a0332d1f9b3e702c79df6cb9b35eeb350c)
2017-03-17ofz#876 avoid accessing empty rowsCaolán McNamara
(cherry picked from commit b9892037c303e645ee1a987d80734361700d91ac) Change-Id: Iba539fb03611bbe5627cc7976c1146d08a2ab5fd Reviewed-on: https://gerrit.libreoffice.org/35256 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> (cherry picked from commit 8d28a387172ed36c7c06b377bbc7041ec0b825d9)
2017-03-16ofz#829 ensure palette can fulfil largest index usedCaolán McNamara
Change-Id: I95aa4796875ee71e8b06a2bb8985845f270b8817 Reviewed-on: https://gerrit.libreoffice.org/35104 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 71f095d734c93e22279c2ab8afe788182eb5bdbb)
2017-03-06ofz: init varsCaolán McNamara
Change-Id: Ie35617997845de25af9e528668bce4c332ac408a (cherry picked from commit 1c29456c9c9007b788297aebea58a1a765f77c84) Reviewed-on: https://gerrit.libreoffice.org/34785 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit 7b64bb4f9421879ad56ba69d3f8dd249eb42d8f0)
2017-03-06ofz#668: check nTargetBits sizeCaolán McNamara
Change-Id: I5cc7499cfdee58ffa480bb31dfc262d5b781180d (cherry picked from commit 99c361be16eb3a21aa679a103db2d07ecd0f5d3c) Reviewed-on: https://gerrit.libreoffice.org/34723 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit 138737f26407acfd6cf431e4a8745569fb786dec)
2017-03-06tdf#51358 Importing ClockWipe in SVG engineRohan Kumar
Most of the constants and transition info table were already written, i just added the perform method. Change-Id: Ib8e2d8e7ca7e26dc54a1e309a2b6271ee7603f34 Reviewed-on: https://gerrit.libreoffice.org/33847 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> (cherry picked from commit 74b54e33135bb99513142e671369e4f3f6370d55)
2017-03-06tdf#51358 Support for VeeWipe transition in SVG SupportRohan Kumar
Ported the class Veewipe Change-Id: I13b9d7235967e3dd1b1b1638c27e76d11708d1e0 Reviewed-on: https://gerrit.libreoffice.org/33764 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> (cherry picked from commit b5b6317e4e35a2a1a81c90dda6e6e4e5457471ee)
2017-03-06tdf#51358 Support for SnakeWipe transition animation in SVG supportRohan Kumar
ported the class SnakeWipe. Change-Id: Icb41072bbd276e0edf3ef2ecea6148c81110b53e Reviewed-on: https://gerrit.libreoffice.org/23285 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> (cherry picked from commit 6e901f86511bd773c1b80f5aebe435f29527e118)
2017-03-06tdf#51358 Support for BoxWipe transition in SVG ExportRohan Kumar
Ported the class BoxWipe Change-Id: Iad93bfa9e414028ba842c3d43edcb8a94c15a104 Reviewed-on: https://gerrit.libreoffice.org/32933 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org> (cherry picked from commit 3ce861adbe4e6f04d9d322e649fccd6cfcbd088f)
2017-03-06tdf#51358 Support for IrisWipe transition animation in SVG ExportRohan Kumar
Ported the class IrisWipe Change-Id: If56f846e9a48941cdd240adfb15f5b36674cadd3 Reviewed-on: https://gerrit.libreoffice.org/32421 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> (cherry picked from commit 4a1d52e7e434269e1331e6fdd6c24d45703a9711)
2017-03-01ofz: don't read data that isn't thereCaolán McNamara
Change-Id: I7fdcb78bde8f650c1a57d34177d8993a6d8a0a2f (cherry picked from commit ee619fb344c7e8f491e09bd256df7f8567af9bef) improve scoping Change-Id: Ic79d46da4e322a0f52981c3a3df65f7f0294fdd8 (cherry picked from commit 840ad0a88045021c58644404a099a3678a371020) make this a little clearer no logic change intended Change-Id: Ibfc46d0aba9e220be54270734e0cdfbc123be9a5 (cherry picked from commit 46b1b5dd2a5368663fd56434160fa126f1a54d84) Reviewed-on: https://gerrit.libreoffice.org/34572 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 4d31e570f69fd8ec5294ea2aea019b57637bccb9)
2017-02-24Resolves: ofz#668 check for massive row lengths before trying to allocate themCaolán McNamara
Change-Id: I7b3f1abf5dcf457e8ff7d04a7cf48ffee70817a2 Reviewed-on: https://gerrit.libreoffice.org/34574 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 86efcdb9279a72408063653f1e99855bf0ca00c4)
2017-02-24ofz: don't read data that isn't thereCaolán McNamara
Change-Id: I9f730c321755cde169d940b49fc93bbe057ead57 (cherry picked from commit c5b1a01ddfa54156b4fa8e542d6936908257ca93) (cherry picked from commit 3106e9eb06eafb82f77c7076d792fc45c8038d37)
2017-02-17Fix import of patterns for MS binary formatsTomaž Vajngerl
Don't use XOBitmap, which in some cases doesn't import the pattern correctly (on Linux and with a different issue on Windows too) - it doesn't seem to be necessary to use it, just convert the pattern bitmap to a bitmap that has the expected colors applied. Change-Id: Ide7d5ce0115b63e882b3544b10fd00d5582cf7d3 Reviewed-on: https://gerrit.libreoffice.org/32855 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 735941713c81ec8ca9ac796b832d776f6ef633ef)
2017-02-01Resolves: ofz#488 check remaining size while parsingCaolán McNamara
Change-Id: Ibb2b6c59a159f9fafa6a065be438b59a6d2d3f21 Reviewed-on: https://gerrit.libreoffice.org/33688 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-02-01ofz: tidy up eps preview importCaolán McNamara
a) check that the remaining stream length is >= the 14 bytes that are unconditionally skipped b) make the initial security count the min of the arbitrary 100 and the remaining stream len less that 14 bytes c) tweak ImplGetNumber not to reduce nSecurityCount if its already 0 Change-Id: Ifffa6d02d492affd578fb48007704457ad635b39 (cherry picked from commit 94ffb720b889c51665ebb789d84aee3b3bacb456) ofz: check eps seeks are sane and succeeded Change-Id: I0eb45e1c1ffd91682ed0ce6a6a74eab54666d715 (cherry picked from commit f85fb724d52a0fff9c64365cd202ae8975492c05) ofz: check if the stream is able to meet the eps len claim before reading Change-Id: I65407bffb67449e203b8ead23554a4e88387d214 (cherry picked from commit e17a34e957c21a8cd2977b1b0e1c9a427c244aed) ofz: check if the stream is able to meet the eps len claim before reading Change-Id: I440c7f38d6588c570a411f2a97c0164e5d7d646f (cherry picked from commit d1f31681623696e99b0bd9e98570cb1ebac518cc) make this a little more readable Change-Id: I83b6b0bd636b639ce0892f22f216410ce79dee03 (cherry picked from commit cf06348d9d4be8b8460d202cebf0d995fd4f6abf) move deref inside (laughable) nSecurityCount check Change-Id: Idf9a83ffa80137967d8c77d7a9b5133529fc2858 (cherry picked from commit 521723b1180a32c02a88ed47137d4242c06eaca7) Reviewed-on: https://gerrit.libreoffice.org/33634 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-01-18ofz#414 crash in DXFHatchEntity::EvaluateGroupCaolán McNamara
(cherry picked from commit 5434d51d12611eb2726ce1394eb01921d008fa89) ofz#415 crash in DXFVector::DXFVector (cherry picked from commit 2a9b4363ca190f1d783d540e95a031357f852858) Change-Id: I15c8cb7aeb8c45f32357afd0ea2f550ffe11dbf7 Reviewed-on: https://gerrit.libreoffice.org/33233 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-01-16ofz: ensure nOldSize is > 0Caolán McNamara
Change-Id: Iaf385c9cd4fd37d56879908c00c7483762d66a0b (cherry picked from commit dd70861fd7123c826feefa86f8af1da1f4877c97) Reviewed-on: https://gerrit.libreoffice.org/33177 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2017-01-16guard against self-recursive GetBoundingBoxCaolán McNamara
Change-Id: If33f0e5e326604bf731d6ad50644e3a0b24ccf51 (cherry picked from commit 7420e350906558556881afc213f942d45d3e0b60) Reviewed-on: https://gerrit.libreoffice.org/33050 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>