Christopher
"Christopher J. Demers" <
[hidden email]> wrote in
message news:98p5uj$2vk4a$
[hidden email]...
> I would like to suggest a small improvement to the Dolphin
> SmalltalkWorkspace in the Class Browser.
>
> Workspaces saved with selected text erroneously think they have changed
when
> they are restored from an image.
The occassional over-zealous prompt to save changes after image restart has
been bugging me for quite a while too, I just hadn't identified that it was
only those browsers where there was a selection in the workspace. Once you'd
pointed that out it was easy to find the problem, and the loss of formatting
of the selection was a further clue (thanks). It's to do with the
RichTextEdit>>state method, patch below (and will be in 4.01).
Regards
Blair
----------------------------
!RichTextEdit methodsFor!
state
"Private - Answer a <MessageSequence> which, when replayed, will restore
the receiver
to its current state."
| sequence |
sequence := super state.
self hasSelection ifFalse: [
sequence add: (MessageSend receiver: self selector: #resetCharFormat)].
^sequence! !
!RichTextEdit categoriesFor: #state!accessing!private! !