mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
When a new color is required, repeat the color assignment process. This is the fastest part of the algorithm, so there's no noticable speed drop. Repeating the whole coloring ensures that newly added colors are properly balanced with respect to other colors, and avoids the situation where one of the last features to be colored requires a whole new class to be created, which will only have a few possible members. Overall this results in more balanced color assignment.