Bug 148133 - EDITING: Clear Direct Formatting doesn't work correctly for text box in Impress and Draw
Summary: EDITING: Clear Direct Formatting doesn't work correctly for text box in Impre...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Clear-Formatting
  Show dependency treegraph
 
Reported: 2022-03-22 08:42 UTC by Po-Yen Huang
Modified: 2023-08-15 07:42 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 Po-Yen Huang 2022-03-22 08:42:45 UTC
Description:
If I use "Clear Direct Formatting" in text box on Impress and Draw, it will become Blue background and black text, but it should be white background and black text.

Steps to Reproduce:
1. Insert a text box in Impress or Draw
2. Type some words in text box and using some text properties like bold, italic or something like this
3. Click "Format" > "Clear Direct Formatting"

Actual Results:
Text box will become blue (light blue I think) background and black text

Expected Results:
Text box become white background and black text


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.3.1.3 / LibreOffice Community
Build ID: 30(Build:3)
CPU threads: 8; OS: Linux 5.16; UI render: default; VCL: kf5 (cairo+xcb)
Locale: zh-TW (zh_TW.UTF-8); UI: zh-TW
7.3.1-1
Calc: CL
Comment 1 giger.jonathan 2022-04-09 09:38:45 UTC
I can confirm this happens on my build. It only happens when all the text in the text box is selected (for example, when Ctrl-A is used and then Clear Direct Formatting is used). I wonder if the bug is actually simply that a "Text Box" should be light blue by default, so that it is uniform with the "Rectangle" shape, then this would be the intended behavior.

Version: 7.2.6.2 (x64) / LibreOffice Community
Build ID: b0ec3a565991f7569a5a7f5d24fed7f52653d754
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 2 Po-Yen Huang 2022-07-20 03:52:45 UTC
(In reply to giger.jonathan from comment #1)
> I can confirm this happens on my build. It only happens when all the text in
> the text box is selected (for example, when Ctrl-A is used and then Clear
> Direct Formatting is used). I wonder if the bug is actually simply that a
> "Text Box" should be light blue by default, so that it is uniform with the
> "Rectangle" shape, then this would be the intended behavior.
> 
> Version: 7.2.6.2 (x64) / LibreOffice Community
> Build ID: b0ec3a565991f7569a5a7f5d24fed7f52653d754
> CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL:
> win
> Locale: en-US (en_US); UI: en-US
> Calc: threaded

I don't think "Text Box" default style uniformed with "Rectangle" shape is a good idea, they are different objects.
Comment 3 Dev 2023-08-15 02:15:56 UTC
Reproducible in 7.6.0.1:

Version: 7.6.0.1 (X86_64) / LibreOffice Community
Build ID: 776eaf34564cbf3f034a0ba1fd1d5c32ff9ccf1c
CPU threads: 4; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: zh-TW (zh_TW.UTF-8); UI: zh-TW
Calc: threaded
Comment 4 Dev 2023-08-15 03:00:24 UTC
In Impress, for the default shape (text frame) given in a slide template (like "Title slide", "Title, content",... etc.) it won't have this problem.  Only for the text box I added (also show as "Shape (text frame)" in the Navigator)  will have this problem.