SVN commit 1097346 by langkamp: fixed some drawing articfacts in outline M +5 -3 kis_brush_based_paintop_settings.cpp M +1 -0 kis_brush_based_paintop_settings.h --- trunk/koffice/krita/plugins/paintops/libpaintop/kis_brush_based_paintop_settings.cpp #1097345:1097346 @@ -32,9 +32,11 @@ if (_mode != CURSOR_IS_OUTLINE) return QRectF(); KisBrushSP brush = options->brush(); QPointF hotSpot = brush->hotSpot(1.0, 1.0); - return image->pixelToDocument( - QRectF(0, 0, brush->width() + 1, brush->height() + 1).translated(-(hotSpot + QPointF(0.5, 0.5))) - ).translated(pos); + QRectF rect = image->pixelToDocument( + QRectF(0, 0, brush->width() + 1, brush->height() + 1).translated(-(hotSpot + QPointF(0.5, 0.5))) + ).translated(pos); + rect.adjust(-2, -2, 2, 2); + return rect; } void KisBrushBasedPaintOpSettings::paintOutline(const QPointF& pos, KisImageWSP image, QPainter& painter, const KoViewConverter& converter, KisPaintOpSettings::OutlineMode _mode) const --- trunk/koffice/krita/plugins/paintops/libpaintop/kis_brush_based_paintop_settings.h #1097345:1097346 @@ -24,6 +24,7 @@ class PAINTOP_EXPORT KisBrushBasedPaintOpSettings : public KisPaintOpSettings { +public: ///Reimplemented virtual QRectF paintOutlineRect(const QPointF& pos, KisImageWSP image, KisPaintOpSettings::OutlineMode _mode) const;