[Libreoffice-bugs] [Bug 155825] Crash MCGR export special file odp -> pptx

2023-06-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=155825

Regina Henschel  changed:

   What|Removed |Added

   Assignee|libreoffice-b...@lists.free |rb.hensc...@t-online.de
   |desktop.org |
 Status|NEW |ASSIGNED

--- Comment #4 from Regina Henschel  ---
I'll work on it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 155825] Crash MCGR export special file odp -> pptx

2023-06-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=155825

--- Comment #3 from Regina Henschel  ---
I have written bug 155827 for the axial-linear problem. It is independent from
the crash here.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 155825] Crash MCGR export special file odp -> pptx

2023-06-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=155825

Caolán McNamara  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 155825] Crash MCGR export special file odp -> pptx

2023-06-13 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=155825

--- Comment #2 from Regina Henschel  ---
Created attachment 187901
  --> https://bugs.documentfoundation.org/attachment.cgi?id=187901=edit
axial color mixed with linear transparency

Axial plus linear is indeed a problem. The attached file has a shape with both
gradients with stops at offset 0 and 1 (so do not trigger the crash) and a
screenshot of the shape. Save the file to pptx and open the pptx-file. You see
the error immediately.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 155825] Crash MCGR export special file odp -> pptx

2023-06-13 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=155825

--- Comment #1 from Regina Henschel  ---
Created attachment 187900
  --> https://bugs.documentfoundation.org/attachment.cgi?id=187900=edit
reduced example

The error is in synchronizeColorStops in gradienttools.cxx in lines 440 to 454.

In both cases not only aNewAlpha (or aNewColor respectively), has to get the
stop but aNewColor (or aNewAlpha respectively) too. The both aNew... need to
grow simultaneously.

The situation in the example is, that the offsets for the colors are 0 and 0.9,
and for the transparency 0 and 1. The generated aNewColor and aNewAlpha both
need the stops 0, 0.9 and 1.

[Looking at the code, I'm not sure whether the combination of axial and linear
is handled correctly. (In the following the Number is the offset and the
characters are the values.)
Imagine a axial color gradient with 0 A, 1 B together with a linear
transparency gradient 0 X, 1 Y. Then the resulting stops should be 0 BX, 0.5 A
middle_of_XY, 1 BY. But because you apply axial after synchronizing you get 0
BY, 0.5 AX, 1 BY.
But I'm not sure and its after midnight so would need to look at it tomorrow
again.]

-- 
You are receiving this mail because:
You are the assignee for the bug.