Bug 142156 - Font position changes to Subscript, if style isn't inherited from another style
Summary: Font position changes to Subscript, if style isn't inherited from another style
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Styles
  Show dependency treegraph
 
Reported: 2021-05-07 14:38 UTC by Georgy Litvinov
Modified: 2024-04-26 03:18 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
file with default text in subscript (12.62 KB, application/vnd.oasis.opendocument.text)
2021-05-07 14:38 UTC, Georgy Litvinov
Details
document with text in custom styles (10.21 KB, application/vnd.oasis.opendocument.text)
2021-05-23 12:39 UTC, Georgy Litvinov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Litvinov 2021-05-07 14:38:29 UTC
Created attachment 171750 [details]
file with default text in subscript

Bad default paragraph style setting in this document can't be changed from anywhere in LibreOffice Writer.
This document was previously exported from docx and came to me in odt.
Default paragraph style settings make default character style subscript.
I found that it is associated with settging style:text-position="sub 58%" set in style:text-properties inside <style:default-style style:family="paragraph">
located in styles.xml
It can't be changed in LibeOffice Writer.
Only way to fix this is to remove this option from styles.xml in unzipped odt file.
I thing there should be options to configure default settings from Writer to fix that kind of problems.

P.S. It can't be fixed by loading styles from regular file. To overwrite it with external styles file that file should have something like style:text-position="0% 100%"
Comment 1 Dieter 2021-05-23 10:13:51 UTC
(In reply to Georgy Litvinov from comment #0)
> Bad default paragraph style setting in this document can't be changed from
> anywhere in LibreOffice Writer.

You can change it the same way you can change every paragraph style
1. Press F11 => Styles tab in sidebar opens
2. Right click on paragraph style "Text Bod" => Modify
3. Change it the way you like (for example in position tab choose "normal" and in Indents & Spacing tab choose single line space.

=> NOTABUG (feel free to change it back to UNCONFIRMED wit a short reasoning, if you disagree)
Comment 2 Georgy Litvinov 2021-05-23 12:39:56 UTC
Created attachment 172270 [details]
document with text in custom styles
Comment 3 Georgy Litvinov 2021-05-23 12:42:18 UTC
(In reply to Dieter from comment #1)
> (In reply to Georgy Litvinov from comment #0)
> > Bad default paragraph style setting in this document can't be changed from
> > anywhere in LibreOffice Writer.
> 
> You can change it the same way you can change every paragraph style
> 1. Press F11 => Styles tab in sidebar opens
> 2. Right click on paragraph style "Text Bod" => Modify
> 3. Change it the way you like (for example in position tab choose "normal"
> and in Indents & Spacing tab choose single line space.
> 
> => NOTABUG (feel free to change it back to UNCONFIRMED wit a short
> reasoning, if you disagree)

Hi, Dieter
The workaround you proposed doesn't solve the bug, it only paritally hides the problem by overriding these settings,not changes them.
After going through the steps you described try loading text from new attached file "document with text in custom styles". It has three paragraph with custom style names. After importing all imported text will be in subscript.
Comment 4 Georgy Litvinov 2021-05-23 12:53:54 UTC
Another example. Just create new paragraph style in the same document. Not inherit settings in new style from Text Body. ( In style settings on Organizer tab "Inherit from" should be None. This style will be in subscript too.
Comment 5 Dieter 2021-05-24 15:46:58 UTC
(In reply to Georgy Litvinov from comment #4)
> Another example. Just create new paragraph style in the same document. Not
> inherit settings in new style from Text Body. ( In style settings on
> Organizer tab "Inherit from" should be None. This style will be in subscript
> too.

I can't confirm this and also not the behaviour you describe in comment 3. There might be some individual settings in your user profile. Could you please retest in SafeMode (Help => Restart in SafeMode)?
=> NEEDINFO
Comment 6 Georgy Litvinov 2021-05-24 16:34:56 UTC
(In reply to Dieter from comment #5)
> (In reply to Georgy Litvinov from comment #4)
> > Another example. Just create new paragraph style in the same document. Not
> > inherit settings in new style from Text Body. ( In style settings on
> > Organizer tab "Inherit from" should be None. This style will be in subscript
> > too.
> 
> I can't confirm this and also not the behaviour you describe in comment 3.
> There might be some individual settings in your user profile. Could you
> please retest in SafeMode (Help => Restart in SafeMode)?
> => NEEDINFO

I retested it and recorded it https://www.youtube.com/watch?v=dLcNrhRbf2I
The instruction doesn't change default styles, it only changes text body style. 
Every new paragraph style in the document will be in subscript.
Comment 7 Dieter 2021-05-26 19:09:42 UTC
(In reply to Georgy Litvinov from comment #6)
> I retested it and recorded it https://www.youtube.com/watch?v=dLcNrhRbf2I
> The instruction doesn't change default styles, it only changes text body
> style. 
> Every new paragraph style in the document will be in subscript.

Thanks for the video. I could reproduce the steps. For me the problem is, that as soon as you create a new paragraph style and set "Inherit from" to none, font position changes to subscript. So a workaround would be to set "Inherit from" to a certain style. Unfortunately I don't know how the style is defined, if inherit is "none". So I would call this a bug. Does this cover your problem? So bug titel would be something like "Font position changes to Subscript, if style isn't inherited from another style" (sorry, my English isn't perfect)
Comment 8 Buovjaga 2022-04-26 11:40:40 UTC
I can reproduce

1. Open attachment 171750 [details]
2. Insert - Text from file
3. Select attachment 172270 [details]

Now you see the inserted text has inherited the subscript property from the Text Body style that is present in attachment 171750 [details] even though the styles in attachment 172270 [details] inherit from none.

Arch Linux 64-bit
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 37613bffe4621c444e5a34678bafb2c3a875263d
CPU threads: 8; OS: Linux 5.17; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded Jumbo
Built on 26 April 2022
Comment 9 QA Administrators 2024-04-26 03:18:04 UTC
Dear Georgy Litvinov,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug