Table loses relative setting after moving the inner border
Steps to Reproduce:
1. Open the attached file
2. Open the table properties settings (check settings)
3. Move the inner border to the left or right
4. Open the table properties settings (check settings)
Relative checkbox unchecked
Should be checked
User Profile Reset: No
Build ID: 87e3539d69626780c6d7531b725dd0d64c69e6d8
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win;
TinderBox: Win-x86@42, Branch:master, Time: 2018-10-10_06:50:13
Locale: nl-NL (nl_NL); Calc: CL
Created attachment 145592 [details]
Small change to the STR
1. Open Writer (in safe mode as precaution)
2. Insert a table (in normal mode)
3. Open table properties -> Set alignment to left & check Relative checkbox
4. Press OK
5. Move the inner table border
6. Open table properties -> Setting changed
7. Repeat the same in web view -> everything is fine
Fix after bug 118635 but broken again...
as far as I can see this is not a dialog issue. When the column is moved with the mouse SetWidthPercent is called with 0 in swtable.cxx:917 in SwTable::SetTabCols because the old and new borders of the table are 7 twips in difference so the width is considered to change and widthpercent is turned off. I imagine the code for SID_RULER_BORDERS in viewtab.cxx SwView::ExecTabWin is off somehow, if someone wants to figure this out
Odd I never noticed before:
Build ID: 57d6b92b69a31260dea0d84fcd1fc5866ada7adb
but not with
Build ID: 3f94c9e9ddfd807b449f3bb9b232cf2041fa12d2
Build ID: dea4a3b9d7182700abeb4dc756a24a9e8dea8474
Created attachment 146799 [details]
It's gone - at least for me - when using a known to be good registerymodifications.xcu
This isn't a corrupt profile issue. The known to be good profile was intended as a possible hint.
The "Table loses relative setting after moving the inner border" is the default behaviour with a clean profile.
(In reply to Telesto from comment #8)
> This isn't a corrupt profile issue. The known to be good profile was
> intended as a possible hint.
> The "Table loses relative setting after moving the inner border" is the
> default behaviour with a clean profile.
If the clean profile is bad, how do you arrive to the good?
(In reply to Buovjaga from comment #9)
> If the clean profile is bad, how do you arrive to the good?
The Million Dollar Question .. I played a little with 5.1 and suddenly started working properly
Repro with 6.2 beta1 and 3.3.0 on Win 10.