Bug 138681 - Direct formatting lost after overwriting text + UNDO
Summary: Direct formatting lost after overwriting text + UNDO
Status: RESOLVED DUPLICATE of bug 137532
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2020-12-05 16:22 UTC by Markus
Modified: 2020-12-07 16:38 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

To reproduce the bug starting with step 4 (7.74 KB, application/vnd.oasis.opendocument.text)
2020-12-05 16:35 UTC, Markus

Note You need to log in before you can comment on or make changes to this bug.
Description Markus 2020-12-05 16:22:00 UTC
Direct formatting (here: font size) is lost (reset to default font size) after selecting/overwriting text (part of the paragraph) + undoing the overwriting (Ctrg + "z").

Steps to Reproduce:
1.Type "abc def ghi" + Enter
2. Select everything using Ctrl + "a"
3. Change font size from default "12 pt" to "11 pt" (= direct formatting)
4. Select "def" using double click
5. Change font from "Carlito" (which is my default) to "DejaVu Sans Mono"
   >>> Note: font size of "def" is now "11 pt"
6. Type "ddf" to overwrite "def"
7. Press Ctrl + "z" to undo the last step

Actual Results:
Font size of the restored text "def" is now 12 pt

Expected Results:
Font size for "def" should be "11 pt" as it was before steps 6 and 7

Reproducible: Always

User Profile Reset: No

Additional Info:
(Version:; Build ID: 00(Build:1); CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE; Ubuntu package version: 1:7.0.3-0ubuntu0.18.04.1)

Same result with LO Writer flatpak version
Comment 1 Markus 2020-12-05 16:28:37 UTC
Sorry, step 6 should be:
Type "d" to overwrite "def"
(or press Ctrl + "z" TWICE)
Comment 2 Markus 2020-12-05 16:35:46 UTC
Created attachment 167850 [details]
To reproduce the bug starting with step 4
Comment 3 Xisco Faulí 2020-12-07 16:38:17 UTC
i fixed this issue in https://cgit.freedesktop.org/libreoffice/core/commit/?id=12eac5bcbc9b71bf00cb88b918988826229cca35
Closing as dupe of bug 137532

*** This bug has been marked as a duplicate of bug 137532 ***