repro: 1. have multiple colors on your canvas 2. shift + lmb to select color 3. draw something 4. shift + rmb to select second color results in access violation