~ubuntu-branches/ubuntu/oneiric/inkscape/oneiric-updates

« back to all changes in this revision

Viewing changes to src/livarot/PathStroke.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2009-12-24 16:10:36 UTC
  • Revision ID: james.westby@ubuntu.com-20091224161036-low9f46u1pveqd6i
Tags: 0.47.0-1ubuntu2
Brown paper bag update: actually use the correct version of the
source tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        }
64
64
 
65
65
        if ( lastP > lastM+1 ) {
66
 
            if ( pts[lastP - 1].closed ) {
 
66
            Geom::Point sbStart = pts[lastM].p;
 
67
            Geom::Point sbEnd = pts[lastP - 1].p;
 
68
            // if ( pts[lastP - 1].closed ) { // this is correct, but this bugs text rendering (doesn't close text stroke)...
 
69
            if ( Geom::LInfty(sbEnd-sbStart) < 0.00001 ) {       // why close lines that shouldn't be closed?
 
70
                // ah I see, because close is defined here for
 
71
                // a whole path and should be defined per subpath.
 
72
                // debut==fin => ferme (on devrait garder un element pour les close(), mais tant pis)
67
73
                DoStroke(lastM, lastP - lastM, dest, true, width, join, butt, miter, true);
68
74
            } else {
69
75
                DoStroke(lastM, lastP - lastM, dest, doClose, width, join, butt, miter, true);