diff options
author | Verne-Lai <verne@ossii.com.tw> | 2021-10-08 09:50:05 +0800 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-10-08 10:22:15 +0200 |
commit | 457a67a5b692e79db1aea775e0a2eb48bf1dbdfa (patch) | |
tree | b7dc35aed8ea4a8903ed9ebf7cf31b32d461e112 /sw | |
parent | a0289052fd4f0f901ffd3698cee8669244701e5e (diff) |
tdf#143142 Solve the button cannot be used when table column is 6
Change-Id: I6147c08ec36da59bb93b707fa206f9a8f681af3b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123237
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/table/tabledlg.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/table/tablepg.hxx | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx index a797a69f1af2..8b46688ba969 100644 --- a/sw/source/ui/table/tabledlg.cxx +++ b/sw/source/ui/table/tabledlg.cxx @@ -742,14 +742,12 @@ SwTableColumnPage::SwTableColumnPage(weld::Container* pPage, weld::DialogControl m_xBuilder->weld_metric_spin_button("width2", FieldUnit::CM), m_xBuilder->weld_metric_spin_button("width3", FieldUnit::CM), m_xBuilder->weld_metric_spin_button("width4", FieldUnit::CM), - m_xBuilder->weld_metric_spin_button("width5", FieldUnit::CM), - m_xBuilder->weld_metric_spin_button("width6", FieldUnit::CM) } + m_xBuilder->weld_metric_spin_button("width5", FieldUnit::CM)} , m_aTextArr { m_xBuilder->weld_label("1"), m_xBuilder->weld_label("2"), m_xBuilder->weld_label("3"), m_xBuilder->weld_label("4"), - m_xBuilder->weld_label("5"), - m_xBuilder->weld_label("6") } + m_xBuilder->weld_label("5")} , m_xModifyTableCB(m_xBuilder->weld_check_button("adaptwidth")) , m_xProportionalCB(m_xBuilder->weld_check_button("adaptcolumns")) , m_xSpaceFT(m_xBuilder->weld_label("spaceft")) diff --git a/sw/source/uibase/table/tablepg.hxx b/sw/source/uibase/table/tablepg.hxx index 7c3a4ceea816..4aa1c6d3faf6 100644 --- a/sw/source/uibase/table/tablepg.hxx +++ b/sw/source/uibase/table/tablepg.hxx @@ -88,7 +88,7 @@ public: }; // TabPage Format/Table/Columns -#define MET_FIELDS 6 //Number of the used MetricFields +#define MET_FIELDS 5 //Number of the used MetricFields class SwTableColumnPage : public SfxTabPage { |