Skip to content

Fix fill tool only filling upwards sometimes

Square789 requested to merge squaredcclxxxix/kolourpaint:fix_floodfill into master

The fill algorithm was behaving erratically and sometimes only filling in top parts of shapes. With this commit, the kpFillLine is copied by value. That seems to fix the issue, as the previously used reference was invalidated by the QList resizing/reallocating in kpFloodFill::addLine.

It should be noted that i have practically no C++ experience and the assumption may be fundamentally incorrect.

BUG: 488537 BUG: 489560

Merge request reports