mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
Assigning fillColor or strokeColor on a text range compared the color as given with the paint the characters have. In a CMYK document an RGB color is stored as CMYK, so assigning the RGB color the text already stores ran text.setRangeStyle again and recorded an undo step that changed nothing. The comparison now converts the color through the text's own document (its color mode and color settings), so the same assignment records no step, and text in a background RGB document keeps an RGB color assigned to it. The text paint setters came with #9304.