Commit 9aabe12b authored by Halla Rempt's avatar Halla Rempt
Browse files

Ellipse tool: update a slightly larger part of the canvas

This avoids the garbage that the ellipse tool sometimes leaves on the
screen when moving around really fast.

BUG:289275
parent d8d99ce8
......@@ -139,7 +139,7 @@ void KisToolEllipseBase::paintEllipse(QPainter& gc, const QRect&)
void KisToolEllipseBase::updateArea()
{
canvas()->updateCanvas(convertToPt(QRectF(m_dragStart, m_dragEnd).normalized()));
canvas()->updateCanvas(convertToPt(QRectF(m_dragStart, m_dragEnd).normalized().adjusted(-10, -10, 10, 10)));
}
#include "kis_tool_ellipse_base.moc"
......
......@@ -38,7 +38,6 @@ public:
protected:
virtual void finishEllipse(const QRectF& rect)=0;
void updateArea(const QRectF& rect);
void updateArea();
private:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment