Bug 111754 - Applying default formatting on a textbox changes background color and line color to blue
Summary: Applying default formatting on a textbox changes background color and line co...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Textbox
  Show dependency treegraph
 
Reported: 2017-08-13 01:41 UTC by Tamás Zolnai
Modified: 2019-05-11 09:33 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot showing the background and line which is applied on the text box (87.68 KB, image/png)
2017-08-13 01:43 UTC, Tamás Zolnai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tamás Zolnai 2017-08-13 01:41:20 UTC
Description:
Newly created text boxes have no background color or line color, so I expect that when I use Default Formatting function on a TextBox, background and line are set to none. Instead of this expectation the background and also the line are both changed some blue color. So applying default formatting on a newly created text box, will change its settings, however it got the default settings when I created it in theory.

Steps to Reproduce:
1. Open Impres
2. Insert a text box (Insert -> Text Box)
3. Select Default Formatting from text box context menu

Actual Results:  
Text box changes its background and line properties.

Expected Results:
Text box should not change since it was just created so it should have the default formatting.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36
Comment 1 Tamás Zolnai 2017-08-13 01:43:11 UTC
Created attachment 135508 [details]
Screenshot showing the background and line which is applied on the text box
Comment 2 Telesto 2017-08-13 08:06:30 UTC
Confirming with:
Version: 6.0.0.0.alpha0+
Build ID: 46b4eb8b0e9325f8c29cd391baf9504bccee1837
CPU threads: 4; OS: Windows 6.19; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-08-11_06:44:17
Locale: nl-NL (nl_NL); Calc: CL

and with
Versie: 4.4.6.3 
Build ID: e8938fd3328e95dcf59dd64e7facd2c7d67c704d
Locale: nl_NL
Comment 3 Regina Henschel 2017-08-13 16:03:46 UTC
The behavior of "Default Formatting" is correct. Reason: The style, which holds the direct formatting of a text box has the style attribute 'style:parent-style-name="standard" '. So when you remove all direct settings, then the text box gets the style "standard" as its style. And "standard" contains line and filling color.

So it is not a real bug. But an improvement is possible. Suggestion: Set the already existing style "text" as predefined style of a text-box or at least as parent-style in an automatic style of the text-box. It differs from "standard" in setting draw:stroke="none" and draw:fill="none"