View Issue Details

IDProjectCategoryView StatusLast Update
0016344ScribusStory Editor / Text Framespublic2020-11-17 13:06
Reportersreerajp Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformWindowsOS10OS Version1909
Product Version1.5.7.svn 
Target VersionFixed in Version 
Summary0016344: Undo not working for insertChars()
DescriptionUndo not working for following function in storytext.cpp

StoryText::insertChars(int pos, const QString& txt, bool applyNeighbourStyle)
TagsNo tags attached.
PatchNo

Activities

jghali

2020-11-17 12:44

administrator   ~0048449

Last edited: 2020-11-17 12:45

View 2 revisions

There is no undo support inside StoryText. If you use StoryText functions and needs undo, you have to create proper undo actions yourself.

sreerajp

2020-11-17 12:50

reporter   ~0048450

What else I can use to insert text at cursor position in text frame?

jghali

2020-11-17 13:06

administrator   ~0048451

StoryText::insertChars() is the right function for this. However you will need to add separately the necessary code to perform undo if you need so.

Issue History

Date Modified Username Field Change
2020-11-17 12:33 sreerajp New Issue
2020-11-17 12:42 jghali Summary Undo not working for inertChars() => Undo not working for insertChars()
2020-11-17 12:44 jghali Note Added: 0048449
2020-11-17 12:45 jghali Note Edited: 0048449 View Revisions
2020-11-17 12:50 sreerajp Note Added: 0048450
2020-11-17 13:06 jghali Note Added: 0048451