https://bugs.freedesktop.org/show_bug.cgi?id=76803

Michael Stahl <mst...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
           Assignee|libreoffice-b...@lists.free |mst...@redhat.com
                   |desktop.org                 |
                 CC|                            |mst...@redhat.com
           See Also|                            |https://bugs.freedesktop.or
                   |                            |g/show_bug.cgi?id=41068
            Version|4.2.2.1 release             |4.2.0.4 release

--- Comment #3 from Michael Stahl <mst...@redhat.com> ---
the image in the header has a negative crop, but that is not the problem...

bibisect range:

6c3d74e8b779b1eb2d9779ed84f1518e078113c4..f42768fe0b60ecbbe9c68d775329bf28c0690131

regression from:

commit f8307e5ae11e8235fa1fb88ed52625bf9c650dc2
Author:     Michael Stahl <mst...@redhat.com>
AuthorDate: Fri Aug 30 19:13:40 2013 +0200

    fdo#41068: writerfilter: fix image wrap polygon import


before the commit we get:

debug:11638:1:  gcd 4294746427 1350
debug:11638:1: ret 1

now:

debug:14717:1:  gcd 220869 1350
debug:14717:1: ret 9
debug:14717:1: nNumerator -220869 mnNumerator 477194047 nGCD 9
debug:14717:1: x 477194047 / 150

debug:14304:1: WrapPolygon [0]: 3181293 0
debug:14304:1: WrapPolygon [1]: 3181293 3661
debug:14304:1: WrapPolygon [2]: 16988 3661
debug:14304:1: WrapPolygon [3]: 16988 0
debug:14304:1: WrapPolygon [4]: 3181293 0

the gcd result of 9 is correct now for -220869 but the subsequent division
is an unsigned one and changes the sign of -220869 to +477194047.

with signed division:

debug:15322:1:  gcd 220869 1350
debug:15322:1: ret 9
debug:15322:1: nNumerator -220869 mnNumerator -24541 nGCD 9
debug:15322:1: x -24541 / 150

debug:15322:1: WrapPolygon [0]: -163 0
debug:15322:1: WrapPolygon [1]: -163 3661
debug:15322:1: WrapPolygon [2]: 16988 3661
debug:15322:1: WrapPolygon [3]: 16988 0
debug:15322:1: WrapPolygon [4]: -163 0

fixed on master

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to