Commit 2e53e25b authored by Sven Langkamp's avatar Sven Langkamp

Merge branch 'krita_outline_update_langkamp'

parents 14664c79 1f650e26
......@@ -417,8 +417,7 @@ void KisToolFreehand::paint(QPainter& gc, const KoViewConverter &converter)
outlineMode = KisPaintOpSettings::CursorIsOutline;
}
QPainterPath path = getOutlinePath(m_outlineDocPoint, outlineMode);
paintToolOutline(&gc,pixelToView(path));
paintToolOutline(&gc,pixelToView(m_currentOutline));
}
}
......@@ -490,7 +489,8 @@ void KisToolFreehand::decreaseBrushSize()
void KisToolFreehand::updateOutlineRect()
{
QRectF outlinePixelRect = getOutlinePath(m_outlineDocPoint, KisPaintOpSettings::CursorIsOutline).boundingRect();
m_currentOutline = getOutlinePath(m_outlineDocPoint, KisPaintOpSettings::CursorIsOutline);
QRectF outlinePixelRect = m_currentOutline.boundingRect();
QRectF outlineDocRect = currentImage()->pixelToDocument(outlinePixelRect);
if (!m_oldOutlineRect.isEmpty()) {
......
......@@ -134,6 +134,7 @@ private:
QPointF m_outlineDocPoint;
QTimer m_outlineTimer;
QRectF m_oldOutlineRect;
QPainterPath m_currentOutline;
bool m_explicitShowOutline;
KAction* m_increaseBrushSize;
......
Markdown is supported
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