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

« back to all changes in this revision

Viewing changes to krita/plugins/tools/defaulttools/kis_tool_ellipse.cc

  • 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:
67
67
 
68
68
        painter.beginTransaction(i18n("Ellipse"));
69
69
        setupPainter(&painter);
70
 
        painter.setOpacity(m_opacity);
71
 
        painter.setCompositeOp(m_compositeOp);
72
 
 
73
70
        painter.paintEllipse(rect);
74
 
        QRegion bound = painter.dirtyRegion();
 
71
        painter.endTransaction(image()->undoAdapter());
 
72
 
 
73
        QRegion bound = painter.takeDirtyRegion();
75
74
        device->setDirty(bound);
76
75
        notifyModified();
77
 
 
78
 
        canvas()->addCommand(painter.endTransaction());
79
76
    } else {
80
77
        QRectF r = convertToPt(rect);
81
78
        KoShape* shape = KisShapeToolHelper::createEllipseShape(r);