diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-10-30 14:17:37 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-11-02 13:26:27 +0100 |
commit | baf205e91db4356e71002581e46b1bdcc1841319 (patch) | |
tree | 2895aa3f245af7a6fa6889841d6941b34d304c28 /sw | |
parent | 9b400e84b1689997378f6738b97b71b09cdb7be6 (diff) |
Table panel: Make sure Row Height spin button works with the default size type
SwFormatFrameSize() object has ATT_VAR_SIZE size type by default, before
we change it to anything else. We will change ATT_VAR_SIZE to ATT_MIN_SIZE
when changing the row height on the sidebar panel, similar to the
row height dialog.
Change-Id: I2520340e023b910549ff2a4b011e9ae3da2b7b11
Reviewed-on: https://gerrit.libreoffice.org/81897
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/shells/tabsh.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx index 57e6f99b59ec..df63915ce961 100644 --- a/sw/source/uibase/shells/tabsh.cxx +++ b/sw/source/uibase/shells/tabsh.cxx @@ -1123,6 +1123,8 @@ void SwTableShell::Execute(SfxRequest &rReq) std::unique_ptr<SwFormatFrameSize> pHeight = rSh.GetRowHeight(); if ( pHeight ) { + if (pHeight->GetHeightSizeType() == ATT_VAR_SIZE) + pHeight->SetHeightSizeType(ATT_MIN_SIZE); pHeight->SetHeight(nNewHeight); rSh.SetRowHeight(*pHeight); } |