diff options
author | Martin van Zijl <martin.vanzijl@gmail.com> | 2018-12-26 07:21:59 +1300 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-03-27 16:54:53 +0100 |
commit | a80317b602e175f780cd662b5526a538d053419a (patch) | |
tree | b916d77e36a21c8034534e11b53491a5149377e7 /cui/source | |
parent | b7bc2105d5093543058716c12e4d88dffb00b752 (diff) |
tdf#60242 remember horizontal/vertical choice in split cells dialog
Change-Id: I25f6b7c8ff6aa678b597bbede0dd1492468f2f62
Reviewed-on: https://gerrit.libreoffice.org/65606
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/splitcelldlg.cxx | 6 | ||||
-rw-r--r-- | cui/source/inc/splitcelldlg.hxx | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/cui/source/dialogs/splitcelldlg.cxx b/cui/source/dialogs/splitcelldlg.cxx index 903c998bb526..6c9a7443c54e 100644 --- a/cui/source/dialogs/splitcelldlg.cxx +++ b/cui/source/dialogs/splitcelldlg.cxx @@ -83,4 +83,10 @@ short SvxSplitTableDlg::Execute() return run(); } +void SvxSplitTableDlg::SetSplitVerticalByDefault() +{ + if( mnMaxVertical >= 2 ) + m_xVertBox->set_active(true); // tdf#60242 +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/inc/splitcelldlg.hxx b/cui/source/inc/splitcelldlg.hxx index 9b4c1f34c668..b0c2fddae3c7 100644 --- a/cui/source/inc/splitcelldlg.hxx +++ b/cui/source/inc/splitcelldlg.hxx @@ -43,6 +43,7 @@ public: virtual long GetCount() const override; virtual short Execute() override; + virtual void SetSplitVerticalByDefault() override; }; #endif |