Bug 121426 - When I paste HTML text into a cell in a table, then undo it, then cells styling is now changed from previous state
Summary: When I paste HTML text into a cell in a table, then undo it, then cells styli...
Status: RESOLVED DUPLICATE of bug 50713
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.2.7.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Undo-Redo
  Show dependency treegraph
 
Reported: 2018-11-14 20:56 UTC by ericmurp
Modified: 2019-12-09 14:57 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ericmurp 2018-11-14 20:56:33 UTC
Description:
When I paste HTML text into a cell in a table, then undo it (because I wanted it unformatted) then cells styling is now changed from previous state. It should revert back to previous font and bolding and size, etc

Version: 5.2.7.2
Build ID: 1:5.2.7-1+deb9u4
CPU Threads: 4; OS Version: Linux 4.9; UI Render: default; VCL: gtk3; 
Locale: en-IE (en_IE.UTF-8); Calc: group

Steps to Reproduce:
0. Take note of the current font settings in writer within a cell of a table you made.
1. Copy a google web results page.
2. Paste into a cell in a table in Writer 
3. Undo
4. Type in the cell

Actual Results:
cells font styling is now changed 

Expected Results:
It should revert back to previous font and bolding and size, etc


Reproducible: Always


User Profile Reset: No



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 Chiang Han 2018-11-29 08:24:46 UTC
Bug not reproducible in version.

Did not find the problem after following the steps.

Additional Info:
Version: 6.3.0.0.alpha0+ (x64)
Build ID: 0f25a3c36f27fd51453b9a9115f236b83c143684
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-27_20:06:55
Locale: zh-TW (zh_TW); UI-Language: en-US
Comment 2 Dieter 2019-01-17 19:30:28 UTC
Thank you for reporting the bug. It seems you're using an old version of LibreOffice. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version. Change to RESOLVED WORKSFORME, if the problem went away.
Comment 3 QA Administrators 2019-07-17 02:49:26 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2019-08-19 07:05:03 UTC Comment hidden (obsolete)
Comment 5 jdien07 2019-09-12 01:17:24 UTC
I may possibly have observed the same issue.
The steps I took were:

1) copy several lines of text from google docs.
2) selected a single cell of spreadsheets (6.3.1.2 release under OS X 10.14.6).
3) command-V to paste
4) chose "automatic" in response to the requestor that asked me to "Select the Language Used for Import"
5) since there were several lines copied, they were allocated to multiple cells, one for each line.  The text was long enough to not fit in the original size of the cells (i.e., longer than a couple words) so the cells stretched to accommodate the text, resulting in several rows of the spreadsheet being much larger than before.
6) clicked on undo.

Expected result is for the spreadsheet to be the same as before the paste operation.  Instead, although the text disappeared, the change to the row sizes did not.

This behavior did not occur when I copy and pasted from Writer, just from google docs.

Furthermore, if I then click on "redo" to bring the text back and then click on "undo" again, now the row sizes revert appropriately.  So this appears to be specific to when the language import function is invoked.
Comment 6 Alex Thurgood 2019-10-25 07:19:33 UTC
@ericmurp : which kind of HTML ?

If I paste content from a Google search, for example, into a Writer table, then press Undo (Cmd-Z), I don't see this issue, the cell takes it normal size once again.

I also tried pasting a selection of HTML data presented in a table into a Writer table, then undoing the paste operation. The cell reverted back to its previous size and styling.

Version: 6.3.1.2
Build ID: b79626edf0065ac373bd1df5c28bd630b4424273
Threads CPU : 4; OS : Mac OS X 10.15; UI Render : par défaut; VCL: osx; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded
Comment 7 Alex Thurgood 2019-10-25 07:22:03 UTC
(In reply to jdien07 from comment #5)



> 1) copy several lines of text from google docs.
> 2) selected a single cell of spreadsheets (6.3.1.2 release under OS X
> 10.14.6).
> 3) command-V to paste
> 4) chose "automatic" in response to the requestor that asked me to "Select
> the Language Used for Import"
> 5) since there were several lines copied, they were allocated to multiple
> cells, one for each line.  The text was long enough to not fit in the
> original size of the cells (i.e., longer than a couple words) so the cells
> stretched to accommodate the text, resulting in several rows of the
> spreadsheet being much larger than before.
> 6) clicked on undo.


This is not the same operation reported by the original bug submitter, who was pasting HTML into a Writer table.
Comment 8 Timur 2019-12-09 14:57:03 UTC
Sorry for not testing this one, but looks like bug https://bugs.documentfoundation.org/show_bug.cgi?id=50713. 
If not, please explain and set Unconfirmed.

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