From cd3043cf07c274cd641b8483b55177e9a5cb1e10 Mon Sep 17 00:00:00 2001 From: Andrius Ramanauskas Date: Wed, 19 Apr 2006 05:14:26 +0000 Subject: Rendering optimisation, which gives best results for zoomed in drawings with complex (multi-node) paths. Optimisation focus - eliminating cubicTo and LineTo nodes outside of visible area, so no unneeded calculations is needed and less memory is consumed (this avoids crashes which were occurring previously if zooming into a complex drawing) (bzr r541) --- src/livarot/ShapeSweep.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/livarot/ShapeSweep.cpp') diff --git a/src/livarot/ShapeSweep.cpp b/src/livarot/ShapeSweep.cpp index 3e5a3bcaf..ea401f7f0 100644 --- a/src/livarot/ShapeSweep.cpp +++ b/src/livarot/ShapeSweep.cpp @@ -75,8 +75,11 @@ Shape::Reoriente (Shape * a) if (numberOfPoints() > maxPt) { maxPt = numberOfPoints(); - if (_has_points_data) - pData.resize(maxPt); + if (_has_points_data) { + pData.resize(maxPt); + _point_data_initialised = false; + _bbox_up_to_date = false; + } } _aretes = a->_aretes; -- cgit v1.2.3