Bug 116005 - Undo of paste does not undo all changes
Summary: Undo of paste does not undo all changes
Status: RESOLVED DUPLICATE of bug 36958
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.1.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-25 13:16 UTC by Luke Kendall
Modified: 2018-07-06 13:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample file in which I discovered the bug (21.19 KB, application/vnd.oasis.opendocument.text)
2018-02-25 13:16 UTC, Luke Kendall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Kendall 2018-02-25 13:16:25 UTC
Created attachment 140132 [details]
Sample file in which I discovered the bug

While writing some text in the Text Body paragraph of a document, and copying the text "95759" from the text in the comment, I discovered that Undo does not Undo the font change, just the text paste.

Steps:

1. Type some text in the document.
2. Add a comment.
3. Copy a word from the comment.
4. Paste it alongside some text in the body paragraph.
5. The pasted text is a tiny font size (smaller even than in the comment: comment font size is 10, pasted text was 7.5!).
6. Undo
7. Paste the text Unformatted

Results:

The text is still the wrong size: because the Undo did not revert the font size change too.

Expected result:

The unformatted paste should provide the text in the same size that was being used before the Paste that was undone.
Comment 1 Xisco Faulí 2018-02-26 16:51:49 UTC
I can't reproduce it in

Version: 6.1.0.0.alpha0+
Build ID: ddbb78caa78085673b07dbea6f53288ec6237764
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

nor in

Versió: 6.0.2.1
ID de la construcció: 1:6.0.2~rc1-0ubuntu0.16.04.1~lo1
Fils de CPU: 4; SO: Linux 4.13; Renderitzador de la IU: per defecte; VCL: gtk3; 
Configuració local: ca-ES (ca_ES.UTF-8); Calc: group

Could you please paste the info from Help - about LibreOffice ?

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' once the information has been provided
Comment 2 Luke Kendall 2018-02-26 23:02:44 UTC
Sure, here it is:

Version: 6.0.1.1
Build ID: 60bfb1526849283ce2491346ed2aa51c465abfe6
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk2; 
Locale: en-GB (en_AU.UTF-8); Calc: group
Comment 3 Xisco Faulí 2018-02-27 09:42:35 UTC
I can't reproduce it in

Version: 6.1.0.0.alpha0+
Build ID: fa2dd2ba03f8be1f148dca8f6164daaf7bbf7d96
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk2; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

Do you use the Edit menu to paste/paste unformatted ?
Comment 4 Luke Kendall 2018-02-27 12:58:47 UTC
No, I used Ctrl-Shift-V and then selected "Paste Unformatted"
Comment 5 Xisco Faulí 2018-02-28 11:32:25 UTC
(In reply to Luke Kendall from comment #4)
> No, I used Ctrl-Shift-V and then selected "Paste Unformatted"

Same here, and the behaviour is correct.
What distro are you using?
Comment 6 Luke Kendall 2018-02-28 12:45:28 UTC
Ubuntu 16.04, Gnome3 desktop, Cinnamon?  It's perfectly reproducible for me, except that today when I try instead of being a strange point size (7.5) it's the same point size as the comment.

I also noticed that even two Ctrl-Zs to do two undos in succession don't fix the point size (i.e. set it back to the default point size for the paragraph): it just undoes the last typing as well, but still leaves the insertion point set to the point size of the comment text.

I can either manually set the point size to stop it persisting after the comment text paste, or do a Ctrl-M to cancel the special formatting the Paste introduced.
Comment 7 Timur 2018-07-06 13:10:23 UTC

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