Bug 155008 - Redaction preview in Draw shows underlined text with white background color (steps in comment 4)
Summary: Redaction preview in Draw shows underlined text with white background color (...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.3.0.0.alpha1+
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: implementationError
Depends on:
Blocks: Redaction
  Show dependency treegraph
 
Reported: 2023-04-25 11:50 UTC by Ken
Modified: 2023-05-11 17:07 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Underlined text highlighted (40.34 KB, application/pdf)
2023-04-25 11:50 UTC, Ken
Details
No underlined text (40.32 KB, application/pdf)
2023-04-25 11:52 UTC, Ken
Details
Original ODT text file with underlining (9.43 KB, application/vnd.oasis.opendocument.text)
2023-04-25 12:26 UTC, Ken
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken 2023-04-25 11:50:59 UTC
Created attachment 186912 [details]
Underlined text highlighted

After selecting areas for redaction in 'Writer' and then click on OK the Draw module launches showing previews of redacted text but it also shows unintended underlined text being highlighted.
This happens whether the underlining was created in Word or Writer. It also happens whether the file is in odt or docx format.
Comment 1 Ken 2023-04-25 11:52:58 UTC
Created attachment 186913 [details]
No underlined text
Comment 2 ajlittoz 2023-04-25 12:18:12 UTC
Please attach the original .odt document so that we can check there is no unexpected configuration in the formatting/styling.
Comment 3 Ken 2023-04-25 12:26:19 UTC
Created attachment 186917 [details]
Original ODT text file with underlining
Comment 4 Buovjaga 2023-05-10 14:06:50 UTC
Steps:
1. Open attachment 186917 [details]
2. Tools - Redact
3. In the Draw instance, draw a filled rectangle covering the content
4. Right-click rectangle - Arrange - Send to back

Now you see the white background for the underlined text.

Redaction was introduced in 6.3 and I see this already in 6.3 bibisect repo.

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b1568a4cd8b439de19aab2bfe5f8f8465e4dc6af
CPU threads: 8; OS: Linux 6.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 10 May 2023
Comment 5 Ken 2023-05-11 07:47:01 UTC
The white background appears over underlined text as soon as Draw launches after selecting Tools>Redact in Writer. This happens before text or block areas for redaction have been selected.
Thre is no need to "draw a filled rectangle covering the content" as stated in step 3.
It seems that the Draw module is 'seeing' underlined text as highlighted.
Comment 6 Buovjaga 2023-05-11 08:13:26 UTC
(In reply to Ken from comment #5)
> Thre is no need to "draw a filled rectangle covering the content" as stated
> in step 3.

Yes there is a need. As the background is white otherwise, how am I going to see that the underlined parts have a white bg?
Comment 7 Ken 2023-05-11 14:36:34 UTC
My comments are written from a user's point of view and maybe your comments are written from a program writer's perspective? This may be where the difference arises?

All I know is that I do not need to draw a rectangle. I simply open the document in Writer and go to Redact it and then the Draw module launches. At this point any underlined text is immediately highlighted without my input.

I hope this clarifies what I mean.

Thank you.
Comment 8 Ken 2023-05-11 17:07:35 UTC
I have discovered why I see the highlighting of unerlined text when the Draw module launches: -

It is because I have the "Document background" color set to a non-white colour.
If I stay with the default "White" RGB color of 255 255 255 then all is okay. I see no highlighting, but that does not mean it is not there. It justs blends-in with the white background.

My customised "Document background" RGB color is 200 210 200 which is a pale grey/green and this causes the "white" highlighting to stand out.

To allow for customised "Document background" colors the highlighting should not happen at all.

I hope this helps with fixing the bug.

Thank you.