Bug 132689 - Undo reverts to default formatting after PPA update
Summary: Undo reverts to default formatting after PPA update
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.4.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-04 16:49 UTC by Coburn Ingram
Modified: 2020-09-26 04:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A simple file that causes the revert problem on my computer. (14.94 KB, application/vnd.oasis.opendocument.text)
2020-09-25 23:13 UTC, Coburn Ingram
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coburn Ingram 2020-05-04 16:49:05 UTC
Description:
When I am typing a paragraph in Writer, in a document where I have manually changed the typeface and font size, and I change my mind about something I have written, and do a series of <CTRL-Z> or Undo actions, the formatting of the paragraph reverts to the overall Writer Default from Tools | Options.

For example, if my default is Liberation Serif 12, and I decide I want the document in Gentium 10, and I make three changes and hit <CTRL-Z> three times, when I undo the first edit I made, the paragraph, and only that paragraph, reverts to Liberation Serif 12.

I am not sure if paragraph formatting reverts. I doubt it because it is not part of the defaults.

I am using 6.4.3.2 on Ubuntu 19.10. I recently upgraded LO to PPA rather than using the version from the repos, but you can tell that from the version number. This bug is new since then.

Steps to Reproduce:
1. Manually change the text formatting of an entire document.
2. Make several edits.
3. Undo them.

Actual Results:
The undo actions proceed as expected but the last undo action reverts the font formatting to default instead of the custom font.

Expected Results:
I would expect that the font format would be unaffected by an undo action. This has been the normal behavior in LO since the beginning.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes
Comment 1 Coburn Ingram 2020-05-04 16:51:03 UTC
I tried in safe mode and confirmed the behavior. It did not reproduce the first time I tried it, but then I tried it again, and the second time I edited two paragraphs, and the behavior was reproduced.
Comment 2 Timur 2020-05-04 19:55:19 UTC
You need to write exact steps and results. 
And to confirm that you searched existing bugs, that this is not duplicate.
Comment 3 Coburn Ingram 2020-05-05 01:47:04 UTC
a) The exact steps required are:
* Change the default font and font size to a custom font and size, not in Tools | Options, but in the document itself.
* Change paragraph formatting if desired (probably optional).
* Input at least one paragraph of text.
* Save the file.
* Reopen the file.
* Make a few changes in the paragraph.
* <CTRL-Z> to undo the changes.

Result: Reverts to the saved text. Font and size revert to default.

b) I have searched the bugs. There do not appear to be duplicates.

I do not have any more information to give you. This is a simple problem. I have not encountered it before, in 15 years of using OO/LO. I am just trying to help improve my favorite app. Thanks.
Comment 4 QA Administrators 2020-05-05 03:45:30 UTC Comment hidden (obsolete)
Comment 5 Timur 2020-05-05 09:15:18 UTC
That's not exact,like "use a default style to change Liberation 11 font to Xy 16 bold...". 
How to change default font ? 
You should prepare a document sample (up to "save") and attach. 
And write which exactly changes to do in paragraph and how many undos and what you get and what you expect.
Comment 6 Coburn Ingram 2020-08-27 01:30:28 UTC
I am being asked for specifics, such as font name and an example file. I am baffled by this request. I will give you specifics, but I have been using computers since 1982. When this sort of thing happens, it is not because of the font you chose!

I set my default font to Gentium 12. Then, in a document, I decided to use Gentium 10 for the default text. There are a number of actions -- often they happen, and I cannot go back and identify what caused it -- where the font reverts to 12 pt. This is new behavior in the recent release.

The other thing that happens is that when LO updates, it reverts my Writer Options to the defaults that shipped with the original install. It goes back to Liberation Sans 12, or whatever. I know this because when I do multiple Undo operations, say 5 CTRL-Z's in a row, the last one, the one that reverts to the saved file, causes the text to revert to the default formatting. Not my default formatting, the out-of-the-box formatting.

LO should not overwrite my font preferences with an update. This is new behavior.

Occasionally I will use two fonts in a document, with one being LTR (Gentium) and one RTL (Ezra SIL). But the formatting problems are always just with the English font, or with both fonts indiscriminately.

I am having trouble deciding on a good example file. Maybe next time this happens I will excerpt a sample page from the book I am on and see if the error persists.

Please have compassion for the fact that I am not a developer or even a power user -- though it is possible I have been using the app for longer than you have. I believe this should be easy to replicate.

Thanks.
Comment 7 QA Administrators 2020-08-27 03:52:38 UTC Comment hidden (obsolete)
Comment 8 Coburn Ingram 2020-09-16 05:30:23 UTC
Arrgh! I am so frustrated with LO randomly reformatting my text! It goes from 10pt back to 12pt just about any time I hit CTRL-Z!

I have gone through the Options settings and checked everything. I have a standard install, nothing remarkable, except that I use Gentium or Gentium Book Basic mixed with Ezra SIL in most of my documents. Perhaps mixing in the CTL language is a factor.

Please be patient, I will try to come up with an example file.

Thanks.
Comment 9 Coburn Ingram 2020-09-16 05:53:37 UTC
(In reply to Coburn Ingram from comment #8)
> Arrgh! I am so frustrated with LO randomly reformatting my text! It goes
> from 10pt back to 12pt just about any time I hit CTRL-Z!
> 
> I have gone through the Options settings and checked everything. I have a
> standard install, nothing remarkable, except that I use Gentium or Gentium
> Book Basic mixed with Ezra SIL in most of my documents. Perhaps mixing in
> the CTL language is a factor.
> 
> Please be patient, I will try to come up with an example file.
> 
> Thanks.

UPDATE: I tried resetting my user profile and that seemed to help. The problem that occurred this time is that LO reset the previous paragraph of text to 12pt when I hit RETURN. It is not doing that now. I believe this has fixed the problem but I will check further to make sure. Thanks for your patience.
Comment 10 QA Administrators 2020-09-17 04:07:53 UTC Comment hidden (obsolete)
Comment 11 Thomas Lendo 2020-09-18 07:15:14 UTC
Resolved as WORKSFORME according to comment 9.

Thanks for your fast feedback, Coburn Ingram.
Comment 12 Coburn Ingram 2020-09-25 23:13:36 UTC
Created attachment 165857 [details]
A simple file that causes the revert problem on my computer.

This is a one-page file that uses tables, form fields, and a font (Andika New Compact) that is different from the default font. My defaults are set to Gentium 10 for English and Ezra SIL 10 for the CTL font. I tried typing in the file where it says "Handling" in row 3, column 2, and then undoing it because I made a mistake. It reverts to Gentium.
Comment 13 BogdanB 2020-09-26 04:31:25 UTC
I tried to folow your last comment. I wrote something after Handling, undo, and I have the same font after Handling. No repro in my case.

Anyway, IF I press "by mistake" Ctrl+M, meaning "Clear Direct Formatting" I get a Gentium 12 Font. But it is not a bug, this is the behaviour. To eliminate all the formatting of the text and to get the default font.