~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to libs/flake/commands/KoPathPointInsertCommand.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 
59
59
        d->pointDataList.append(*it);
60
60
 
61
 
        QPair<KoPathSegment, KoPathSegment> splitSegments = segment.splitAt( insertPosition );
 
61
        QPair<KoPathSegment, KoPathSegment> splitSegments = segment.splitAt(insertPosition);
62
62
 
63
63
        KoPathPoint * split1 = splitSegments.first.second();
64
64
        KoPathPoint * split2 = splitSegments.second.first();
65
 
        KoPathPoint * splitPoint = new KoPathPoint( pathShape, split1->point() );
66
 
        if( split1->activeControlPoint1() )
 
65
        KoPathPoint * splitPoint = new KoPathPoint(pathShape, split1->point());
 
66
        if(split1->activeControlPoint1())
67
67
            splitPoint->setControlPoint1(split1->controlPoint1());
68
 
        if( split2->activeControlPoint2() )
 
68
        if(split2->activeControlPoint2())
69
69
            splitPoint->setControlPoint2(split2->controlPoint2());
70
70
 
71
71
        d->points.append(splitPoint);