• Stephan Bergmann's avatar
    Revert "simplify ImpXPolygon" · e07d741b
    Stephan Bergmann yazdı
    This reverts commit f9c2bcc8.  Drawing all sorts
    of curves and polygons in Draw causes various crashes in
    svx/source/svdraw/svdopath.cxx, apparently because in the past ImpXPolygon's
    pPointAry had a "buffer" of more elements (nSize) than it had nPoints, and the
    code heavily relied on that, assigning to such excess elements of pPointAry past
    nPoints (and presumably calling XPolygon::SetPointCount later?).
    
    Conflicts:
    	svx/source/xoutdev/_xpoly.cxx
    (Reverted the mostly, if not completely, automatic changes there done by
    924c0e34 "loplugin:changetoolsgen in svx"; they
    will need to be re-done.)
    
    Change-Id: I6cb41fd218c3bdd0b3bbeb45f5b3d68649901a48
    Reviewed-on: https://gerrit.libreoffice.org/50057Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    e07d741b
poly.hxx 11 KB