Bug 168690 - Wrong underline color when overlapping different types of underline
Summary: Wrong underline color when overlapping different types of underline
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-04 08:52 UTC by yarma22
Modified: 2025-10-04 08:58 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
File that illustrates this bug (16.98 KB, application/vnd.oasis.opendocument.text)
2025-10-04 08:54 UTC, yarma22
Details
Screenshot of the bug (75.05 KB, image/png)
2025-10-04 08:55 UTC, yarma22
Details
Video reproducing the bug (393.02 KB, video/webm)
2025-10-04 08:56 UTC, yarma22
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yarma22 2025-10-04 08:52:56 UTC
Description:
With direct formatting, when two different types of underline (e.g. single, double, bold, dotted, dash, etc.) overlap, the second underline will not use the same color as the text.

Steps to Reproduce:
1. Start Writer in safe mode
2. Create a new document
3. Increase the font size (to make the color difference more obvious)
4. Write some text (e.g. "This is a test")
5. Select the first word (e.g. "This") and underline it with a single underline (e.g. Ctrl+U)
6. Select some text overlapping with the first word
   * For instance, select its last letter and the next two words (e.g. "s is a")
7. Underline the selection in `Bold`
   * i.e. click on the `Underline` icon drop-down button and select `Bold` in the menu

Actual Results:
The bold underline appears with a different color (in my case blue, but sometimes it's also green) than the text (in my case black, since this is the default color)

Expected Results:
The bold underlining should be the same color as the text


Reproducible: Always


User Profile Reset: Yes

Additional Info:
I found a workaround : when underlining the overlapping text, if I first underline it with a single underline and then underline it with the other type of underline, then the color remains the same as the text.

To be noted that the bug also occurs when the two underlines are the same type, unless the first underline is a single one (e.g. in the procedure, underline both times in bold and the bug still occurs).

Below are my system details:

> Version: 25.2.6.2 (X86_64) / LibreOffice Community
> Build ID: 520(Build:2)
> CPU threads: 8; OS: Linux 6.14; UI render: default; VCL: gtk3
> Locale: en-US (en_US.UTF-8); UI: en-US
> Ubuntu package version: 4:25.2.6-0ubuntu0.25.04.1
> Calc: threaded
Comment 1 yarma22 2025-10-04 08:54:51 UTC
Created attachment 203138 [details]
File that illustrates this bug
Comment 2 yarma22 2025-10-04 08:55:30 UTC
Created attachment 203139 [details]
Screenshot of the bug
Comment 3 yarma22 2025-10-04 08:56:20 UTC
Created attachment 203140 [details]
Video reproducing the bug
Comment 4 yarma22 2025-10-04 08:58:34 UTC
According to @ajlittoz:

> it is a bug related to direct formatting and toolbar button usage. Apparently, it affects Font Effects, Underlinig colour (which is changed from Automatic to some random value).

See:
https://ask.libreoffice.org/t/bug-writer-wrong-underline-color-when-overlapping-different-types-of-underline/127404/3