Bug 77778 - Writer thinly displays hidden column on Paste Special RTF paste from Calc table
Summary: Writer thinly displays hidden column on Paste Special RTF paste from Calc table
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.4.1 rc
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTF-Paste
  Show dependency treegraph
 
Reported: 2014-04-22 19:59 UTC by Roman Kuznetsov
Modified: 2023-02-04 13:55 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot. Table with hidden column in Writer (3.56 KB, image/png)
2014-04-22 19:59 UTC, Roman Kuznetsov
Details
ODT Example after insert table from Calc (there was hidden column) (8.46 KB, application/octet-stream)
2018-05-27 07:40 UTC, Roman Kuznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Kuznetsov 2014-04-22 19:59:09 UTC
Created attachment 97771 [details]
Screenshot. Table with hidden column in Writer

After fixing the bug 69289 copying from calc a table containing a hidden column in writer as RTF format displays hidden column width of a few pixels (see screenshot).
Comment 1 Roman Kuznetsov 2014-04-24 07:25:57 UTC Comment hidden (obsolete)
Comment 2 Anatoliy 2014-04-24 07:31:15 UTC
confirm bug
Comment 3 Roman Kuznetsov 2015-03-17 19:18:54 UTC Comment hidden (obsolete)
Comment 4 tommy27 2016-04-16 07:24:37 UTC Comment hidden (obsolete)
Comment 5 Roman Kuznetsov 2016-04-16 08:24:28 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2017-05-22 13:25:44 UTC Comment hidden (obsolete)
Comment 7 Roman Kuznetsov 2017-05-22 19:52:29 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2018-05-23 02:36:31 UTC Comment hidden (obsolete)
Comment 9 Roman Kuznetsov 2018-05-23 04:34:36 UTC Comment hidden (obsolete)
Comment 10 Timur 2018-05-23 13:53:51 UTC
Please attach test document and write exact steps. 
Do you mean "save as RTF"? Does it happen ifa saved as ODT, DOC, DOCX? That should be in title.
Comment 11 Roman Kuznetsov 2018-05-27 07:40:11 UTC
Created attachment 142305 [details]
ODT Example after insert table from Calc (there was hidden column)
Comment 12 Roman Kuznetsov 2018-05-27 07:45:18 UTC
steps to repro:

1. Create a new spreadsheet
2. enter values in to columnt a,b,c:

A B C
1 2 3
1 2 3
1 2 3

3. Hide column B
4. Select range A1:C3 (column B is hidden!)
5. Copy it
6. Open Writer document
7. Special paste - Rich text formatting (RTF)
8. Look at table in Writer -> it shows thin column B, that should be hidden
Comment 13 Mike Kaganski 2019-01-29 09:38:26 UTC
As described in bug 69289 comment 12, Writer has a hardcoded minimal width for cells (can't be smaller than 0.07cm). So when hidden (=with width 0) cells are pasted to Writer, they become minimal width (not 0).

So the only possible solution here could be remove the columns entirely on paste.
Comment 14 QA Administrators 2021-02-03 04:15:10 UTC Comment hidden (obsolete)
Comment 15 Roman Kuznetsov 2021-02-03 14:47:18 UTC
still repro in

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 6ab1feb2604d2620435a2aecbafff1d8c21255e9
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded
Comment 16 Roman Kuznetsov 2021-02-03 14:49:55 UTC
(In reply to Mike Kaganski from comment #13)
> As described in bug 69289 comment 12, Writer has a hardcoded minimal width
> for cells (can't be smaller than 0.07cm). So when hidden (=with width 0)
> cells are pasted to Writer, they become minimal width (not 0).
> 
> So the only possible solution here could be remove the columns entirely on
> paste.

But if I insert that table with hidden column into Writer document as HTML, then I get a nice table without visible hidden column
Comment 17 QA Administrators 2023-02-04 03:20:03 UTC Comment hidden (obsolete)
Comment 18 Roman Kuznetsov 2023-02-04 13:55:51 UTC
Still repro 

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d8e6b488ceaff7c88856ebcfcfec14d2d8cd7652
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL threaded