Fix #6184, canvas doesn't refresh after pasting layer style