Skip to content

Commit

Permalink
#1435 - Fix polyline buffer not being cleared.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStevns authored and chchwy committed Sep 22, 2020
1 parent c3980c2 commit 9712e91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core_lib/src/tool/polylinetool.cpp
Expand Up @@ -269,5 +269,8 @@ void PolylineTool::endPolyline(QList<QPointF> points)
if (bitmapImage == nullptr) { return; } // Can happen if the first frame is deleted while drawing
bitmapImage->paste(mScribbleArea->mBufferImg);
}

mScribbleArea->setAllDirty();
mScribbleArea->clearBitmapBuffer();
mScribbleArea->setModified(mEditor->layers()->currentLayerIndex(), mEditor->currentFrame());
}

0 comments on commit 9712e91

Please sign in to comment.