summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-05 11:24:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-05 16:22:12 +0200
commit21f53f55f82f12fbee4e0d93ff26d3bb05ec3c55 (patch)
tree0385547fc9517f2b9f0327e653fe59927ba72f12 /chart2/source
parent4ff983b930dc15658aa531759d3f1e5b9586aeab (diff)
Resolves: tdf#142049 expand widget to use unused extra space
Change-Id: I7ff6aa4feeccd790b6176cb60b6adb9b21db0f63 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115135 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/controller/dialogs/res_BarGeometry.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/controller/dialogs/res_BarGeometry.cxx b/chart2/source/controller/dialogs/res_BarGeometry.cxx
index da48f4ca608a..182d391aac33 100644
--- a/chart2/source/controller/dialogs/res_BarGeometry.cxx
+++ b/chart2/source/controller/dialogs/res_BarGeometry.cxx
@@ -29,7 +29,8 @@ BarGeometryResources::BarGeometryResources(weld::Builder* pBuilder)
{
for (size_t i = 0; i < SAL_N_ELEMENTS(CHART_TYPE); ++i)
m_xLB_Geometry->append_text(SchResId(CHART_TYPE[i]));
- m_xLB_Geometry->set_size_request(-1, m_xLB_Geometry->get_height_rows(4));
+ m_xLB_Geometry->set_size_request(-1,
+ m_xLB_Geometry->get_height_rows(SAL_N_ELEMENTS(CHART_TYPE)));
}
void BarGeometryResources::connect_changed(const Link<weld::TreeView&, void>& rLink)