Merge pull request #1239 from manongjohn/fix_drag_refer_flood_fill

Fix dragging on Smart Raster reference fill
This commit is contained in:
manongjohn 2023-10-15 08:38:35 -04:00 committed by GitHub
commit fb4d9102f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2616,10 +2616,11 @@ void FillTool::leftButtonDrag(const TPointD &pos, const TMouseEvent &e) {
closeStyleIndex =
TTool::getApplication()->getCurrentPalette()->getStyleIndex();
}
TTool::Application *app = TTool::getApplication();
applyFill(img, pos, params, e.isShiftPressed(), m_level.getPointer(),
getCurrentFid(), m_autopaintLines.getValue(),
m_closeRasterGaps.getIndex() > 0, m_closeRasterGaps.getIndex() > 1,
closeStyleIndex);
m_closeRasterGaps.getIndex() > 0, m_closeRasterGaps.getIndex() > 1, closeStyleIndex,
app->getCurrentFrame()->getFrameIndex());
invalidate();
}
}