Changing the style of part of text adds two entries to the undo stack
Summary:
Changing the style, size, or kerning settings of only part of a text object via the tool settings will add a second entry to the undo stack that does nothing.
Steps to reproduce:
- Open Inkscape
- Make a text object and type something in it
- Select part of the string
- Change the style, size, or letter spacing using the tool settings along the top
- Try to undo
What happened?
The first time you undo, nothing will happen. The second time the change will be undone.
I believe I have seen the second (later) entry modify the XML in some way that does not affect appearance, but I could not reproduce that just now.
What should have happened?
Changing a setting should count as only one action in the undo stack.
Sample attachments:
Version info
Inkscape 1.4.2 (f4327f4, 2025-05-13)
Compile (Run)
GLib version: 2.84.0
GTK version: 3.24.49 (3.24.49)
glibmm version: 2.66.7
gtkmm version: 3.24.9
libxml2 version: 2.12.10
libxslt version: 1.1.43
Cairo version: 1.18.4 (1.18.4)
Pango version: 1.56.3 (1.56.3)
HarfBuzz version: 10.4.0 (10.4.0)
OS version: Windows 11 24H2