https://bugs.kde.org/show_bug.cgi?id=440395

            Bug ID: 440395
           Summary: Undoing a "Number" annotation does not decrease
                    "Number Seed"
           Product: Spectacle
           Version: 21.04.3
          Platform: Neon Packages
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: General
          Assignee: m...@baloneygeek.com
          Reporter: winghongc...@vivaldi.net
                CC: k...@david-redondo.de
  Target Milestone: ---

Created attachment 140398
  --> https://bugs.kde.org/attachment.cgi?id=140398&action=edit
I add a Number annotation, use CTRL+Z to undo it, then add and undo more Number
annotations.

SUMMARY
When I insert a Number annotation (the one that adds a circle with a number
inside it) and undo it, the "Number Seed" (the number that will appear in the
next Number annotation added) does not decrease. For example, if I insert a
Number annotation 1, then undo it, then insert a new Number annotation, it will
contain the number 2. 
Having it insert a Number with the same value as the Number that was undone
would be useful to re-add the Number somewhere else.
The workaround for now is to decrease the Number Seed in the toolbar after
undoing a Number annotation.

STEPS TO REPRODUCE
1. Open Spectacle
2. Take a New Screenshot (Click on "Take a New Screenshot", click and drag to
select an area then press ENTER if necessary)
3. Click "Annotate" 
4. Click "Number" (icon that looks like the number 1 in a circle)
5. Click somewhere on the screenshot to add a Number annotation
6. Press CTRL+Z to undo adding the Number
7. Click somewhere on the screenshot to add a Number annotation

OBSERVED RESULT
The Number that is inserted after the undo is one greater than the Number
inserted that was undone.

EXPECTED RESULT
The Number that is inserted after the undo should be the same as the one added
before. 

SOFTWARE/OS VERSIONS
Windows: --
macOS: --
Linux/KDE Plasma: KDE Neon 5.22
(available in About System)
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to