Bug 96412 - There is something wrong with the cell UserDefinedAttributes after save as .odt.
Summary: There is something wrong with the cell UserDefinedAttributes after save as .odt.
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:5.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-11 13:39 UTC by aqcoder
Modified: 2016-10-25 19:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
script of python to get/set attributes of text table cell (2.85 KB, text/plain)
2015-12-11 13:39 UTC, aqcoder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aqcoder 2015-12-11 13:39:32 UTC
Created attachment 121222 [details]
script of python to get/set attributes of text table cell

There is something wrong with the 'UserDefinedAttributes' of the text table when save as .odt.
I write a script of Python to show the bug. Follow by step:

1. Put the Python script to {LOROOT}/share/Scripts/python/pythonSamples/TableCellProperty.py
2. Open an empty doc on writer.
3. Insert table with have 6 cloums.
4. Tools->Macros->OrgnizeMacros->Pythons...
5. Select LibreOfficeDev Macros
			|-pythonSamples
				|-TableCellProperty
					|-SetPropertyPython
   on the pop dialog.
6. Then GetPropertyPython (for show the atrributes)
7. Save file. (There is something wring here ?)
8. Open the file.
9. GetPropertyPython again, the attribute of the cell('D1', 'E1') changed.

the result:
http://7xjcd4.com1.z0.glb.clouddn.com/cell_attrs_1.png
http://7xjcd4.com1.z0.glb.clouddn.com/cell_attrs_2.png

voido of steps:
http://7xjcd4.com1.z0.glb.clouddn.com/lo_bug_cell_attr.mp4

more:
http://www.aqcoder.com/blog/detail/id/e470a588-a009-11e5-801f-2a06cd74bd52/
Comment 1 aqcoder 2015-12-20 01:38:54 UTC
I have submit the patch, and wait for code review.

https://gerrit.libreoffice.org/#/c/20765/
Comment 2 Commit Notification 2015-12-24 19:47:32 UTC
aqcoder committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=d3e57ccf2e56a75bd4f004de53793f1742e34bc4

tdf#96412 Fix export text table cell UserDefinedAttributes to xml.

It will be available in 5.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2015-12-25 20:04:22 UTC
jan iversen committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=da5d3f0fc8edc38f3830644aee0507c7675b37b3

Revert "tdf#96412 Fix export text table cell UserDefinedAttributes to xml."

It will be available in 5.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2016-01-12 19:36:20 UTC
aqcoder committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=a16cef75e829cd48445905fc67de625640bf6398

tdf#96412 Fix export text table cell UserDefinedAttributes to xml.

It will be available in 5.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.