Skip to content
Permalink
Browse files

Remove rounding of bucket tool fill

The bucket tool rounded the point selected, which meant that
sometimes it would fill the adjacent pixel rather than the
selected pixel.
  • Loading branch information...
scribblemaniac committed Apr 13, 2019
1 parent 673ec0c commit 1dc46e63942298a83ec67b0b83c5c2e1e15d595d
Showing with 1 addition and 1 deletion.
  1. +1 −1 core_lib/src/tool/buckettool.cpp
@@ -153,7 +153,7 @@ void BucketTool::paintBitmap(Layer* layer)

BitmapImage* targetImage = ((LayerBitmap*)targetLayer)->getLastBitmapImageAtFrame(editor()->currentFrame(), 0);

QPoint point = getLastPoint().toPoint();
QPoint point = QPoint(qFloor(getLastPoint().x()), qFloor(getLastPoint().y()));
QRect cameraRect = mScribbleArea->getCameraRect().toRect();
BitmapImage::floodFill(targetImage,
cameraRect,

0 comments on commit 1dc46e6

Please sign in to comment.
You can’t perform that action at this time.