Update color history after fill BUG:379199
(cherry picked from commit 80647e8b318aeab5c39be56d53136d9a1b47bb88)