[ tktoolkit-Bugs-1275237 ] modified flag not managed when undoing certain text inserts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ tktoolkit-Bugs-1275237 ] modified flag not managed when undoing certain text inserts

SourceForge.net
Bugs item #1275237, was opened at 2005-08-28 11:40
Message generated for change (Settings changed) made by hobbs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1275237&group_id=12997

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: 18. [text]
>Group: current: 8.4.11
Status: Open
Resolution: None
>Priority: 6
Submitted By: fvogelnew1 (fvogelnew1)
>Assigned to: Vince Darley (vincentdarley)
Summary: modified flag not managed when undoing certain text inserts

Initial Comment:
The modified flag of the text widget is not well managed
by Tk when certain changes are undone.

Example 1 (works OK):
text .t -undo 1
pack .t
.t insert 1.0 "Hello world!   "
.t edit reset
.t edit modified false
.t insert 1.14 "Goodbye!"
puts [.t edit modified]
.t edit undo
puts [.t edit modified]

The output in the console is:
1
0
which is correct: the modified flag has been reset to
false by the undo.

Example 2 (wrong results):
text .t -undo 1
pack .t
.t insert 1.0 "Hello world!   "
.t edit reset
.t edit modified false
.t insert 1.14 ""
puts [.t edit modified]
.t edit undo
puts [.t edit modified]

The only difference is that instead of
inserting "Goodbye!" the script inserts an empty
string "".

The output in the console is in this case:
1
1
i.e. the modified flag was not reset by the undo
operation.

The undo has been correctly performed since a further .t
edit undo spits:
nothing to undo

This problem therefore concerns only the modified flag.


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1275237&group_id=12997


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Tcl-Bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tcl-bugs