Bug 159399 - Replacing a word at the beginning of a marked sequence loses marker color
Summary: Replacing a word at the beginning of a marked sequence loses marker color
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.9.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Styles Character Selection
  Show dependency treegraph
 
Reported: 2024-01-27 13:24 UTC by spam
Modified: 2024-02-13 03:12 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description spam 2024-01-27 13:24:09 UTC
This bug has been around for a LONG time. Seems minor, but over the years...

How to reproduce:

1. Copy and paste this sentence into Libreoffice Writer (yes, this one!).

2. Mark the words "paste this sentence into" and highlight them in a background color of your choice (for instance, bright yellow).

3. Doubleclick the word "paste".

4. Type "insert" instead.

5. RESULT: The word "insert" isn't highlighted anymore. The expected result is that, if you replace a word within a highlighted section, it should remain highlighted.
Comment 1 spam 2024-01-27 13:29:37 UTC
PS: Is this some kind of punishment for posting a bug that you're posting my mail address for all to see?
Comment 2 Dieter 2024-02-12 11:50:46 UTC
I confirm it with

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: aa6d11771d085803cdb811579f47debc30c4d94b
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

I assume, step 2 is about character highlighting and not background color (this would color the whole paragraph)

I'm sure, there is a similar report, but I couldn't find it.
Comment 3 Dieter 2024-02-12 11:51:34 UTC
(In reply to spam from comment #1)
> PS: Is this some kind of punishment for posting a bug that you're posting my
> mail address for all to see?

I think this happens, because your mail address is also your user name.
Comment 4 Eyal Rozenberg 2024-02-12 11:59:37 UTC
Note that this behavior isn't about highlighting per se. You get the same effect in instead of highlighting you apply any (?) DF, e.g. boldfacing the text, or changing the font family etc. as step (2.) in the reproduction instructions.