Re: How to get a bitmap of page or shape in a unit test?

2019-03-01 Thread Regina Henschel
remainder --> reminder ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice

Re: How to get a bitmap of page or shape in a unit test?

2019-03-01 Thread Regina Henschel
Hi, Michael Stahl schrieb am 28-Feb-19 um 10:54: On 28.02.19 01:31, Regina Henschel wrote: The shape members mXRenderedCustomShape and  mxCustomShapeEngine are empty. I have tried to generate them by calling GetSdrObjectFromCustomShape(). It sets

Re: How to get a bitmap of page or shape in a unit test?

2019-02-28 Thread Michael Stahl
On 28.02.19 01:31, Regina Henschel wrote: The shape members mXRenderedCustomShape and  mxCustomShapeEngine are empty. I have tried to generate them by calling GetSdrObjectFromCustomShape(). It sets "com.sun.star.drawing.EnhancedCustomShapeEngine" as engine. But in the given context the

Re: How to get a bitmap of page or shape in a unit test?

2019-02-27 Thread Regina Henschel
Hallo Miklos, Miklos Vajna schrieb am 27-Feb-19 um 09:22: (Or just do the same using the UI: open the document in question, close it, and see the preview metafile in the start center.) Saving in the UI creates the Thumbnails folder with the preview. But when I use "save" (that from

Re: How to get a bitmap of page or shape in a unit test?

2019-02-27 Thread Miklos Vajna
Hi Regina, On Tue, Feb 26, 2019 at 12:25:38AM +0100, Regina Henschel wrote: > But the content of 'myfirstmetafile.xml' has no shape, but only the page. > Background color and size of the page is correct. > [Of cause, the file 'myfirstmetafile.xml' does not belong to a final > solution.] > >

Re: How to get a bitmap of page or shape in a unit test?

2019-02-25 Thread Regina Henschel
Hi Miklos, Miklos Vajna schrieb am 25-Feb-19 um 09:44: Hi Regina, On Mon, Feb 25, 2019 at 01:13:00AM +0100, Regina Henschel wrote: I have tried to do it the same as in SdImportTest::testTdf93124 in import-tests.cxx in sd/qa/unit. But I only get a bitmap of the page without the shape.

Re: How to get a bitmap of page or shape in a unit test?

2019-02-25 Thread Miklos Vajna
Hi Regina, On Mon, Feb 25, 2019 at 01:13:00AM +0100, Regina Henschel wrote: > I have tried to do it the same as in SdImportTest::testTdf93124 in > import-tests.cxx in sd/qa/unit. But I only get a bitmap of the page without > the shape. Asserting pixel data in bitmap is really the last resort.

How to get a bitmap of page or shape in a unit test?

2019-02-24 Thread Regina Henschel
Hi all, the current implementation of custom shape commands U and T (angleellipse) is wrong in the way, that for a command U with a series parameter groups only the first it treated as command U but the second as command T. Thus a line is drawn, where no line should be. My patch fixes this.