Relative table setting lost (gets absolute again)
Steps to Reproduce:
1. Open the attached file
2. Table -> Properties -> Go to table tab
3. Table -> Properties -> Go to column tab
4. Type 25 in width Column 1
5. Press OK
6. Table -> Properties -> table tab -> Relative setting unchecked
Relative setting unchecked
User Profile Reset: No
Build ID: 15ea1cda0b3c37ff944ad9a239b7ed453e8b0591
CPU threads: 4; OS: Windows 6.3; UI render: default;
Locale: nl-NL (nl_NL); Calc: CL
Created attachment 163210 [details]
Build ID: 32090b018d9ff81659a4c9ed41c64109ebebe4fc
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
As are already looking into they table dialog code, you might be interested in this
it looks like if the the width of the table changes from the size it was when in relative mode, it toggles out of relative mode and changing the column widths due to rounding in this case after setting the table width the column widths are set which results in a slight change of the table width causing it to to out of relative mode. Moving the table width setting to just after the column width setting makes it stick, and I don't see any obvious unwanted side effects on doing that.
Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":
tdf#134913 set table width after setting columns
It will be available in 7.1.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.