https://bugs.documentfoundation.org/show_bug.cgi?id=164403

Armin Le Grand (allotropia) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|[email protected] |[email protected]
                   |desktop.org                 |

--- Comment #3 from Armin Le Grand (allotropia) <[email protected]> ---
Using DISABLE_SYSTEM_DEPENDENT_PRIMITIVE_RENDERER=1 as EnvVar to disable
CairoSDPR indeed shows that it works then but not with CiaroSDPR. No idea whats
going on, have to dig into it.
Page 490 'smells' like integer overrun somewhere -> traditionally these were
32bit, this SW uses twips, page height is 297mm, 29700 100thmm. I found

    public static float twipsToHMM(float twips) {
        return (twips * 127 + 36) / 72;
    }

turning this around means ((29700 * 72) - 36) / 127 twips per page, that are
16837.* twips per page. For 490 pages we get to 8250380. Another hint for a
numerical problem is that it works when going to double pages - then it should
fail at 2*490 -> 980 pages i would guess. Indeed width/height in SdrPage are
tools::Long nowadays, but often put in vars/handed over to functions that still
use smaller-sized integers and get cut/turnaround.

Have to dig into it...

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

Reply via email to