[Libreoffice-ux-advise] [Bug 88990] Unclear how to un-highlight

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jan 31 14:55:40 PST 2015


https://bugs.documentfoundation.org/show_bug.cgi?id=88990

--- Comment #3 from V Stuart Foote <vstuart.foote at utsa.edu> ---
(In reply to Bryant from comment #2)
> As for 1, it sounds like we're in agreement but "undoing" should entail
> restoring the previous highlighting choice. 

Highlighting is normally applied as direct formatting against the style
(usually "default") so there would be nothing "previous" to revert to, just
back to the applied paragraph style.

> So why not utilize the undo
> stack and instead of clearing any highlighting actually just undo the
> highlighting and restoring the previous highlighted color? This may be
> difficult as the text selection would be part of the undo stack save, but
> this is effectively what we want to achieve.

That is an implementation issue for a devs, but suspect the serial nature of
the undo stack is going to be too costly to use to try to identify the
highlight action (or other direct formatting) to revert. Think of trying to go
back through a couple of dozen paragraphs of new text including direct
formatting actions in order to identify a single highlighting action to be
reverted.

Believe it is going to be more efficient if done as a current text
selection--aided by a smart selection/detection of some type.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list