summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-05-14 11:28:17 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-05-15 10:00:48 +0200
commit2668f93205e5c006d1f8228aaef8dda0403bc08a (patch)
treec05fbbd7599130c86ba23c27e5ad6f4196e967fa /sfx2
parent1054cad056cc4f8f1823c81ec340b468024eb78c (diff)
Fix regression in "Directly initialize vectors in sfx2/ObjectInsp..."
Change-Id: Ibd975c4da8ccfd44f5c2b779774a3834918603b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115591 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/devtools/ObjectInspectorTreeHandler.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index 204cdb3c9319..60a81be9ab60 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -971,10 +971,12 @@ ObjectInspectorTreeHandler::ObjectInspectorTreeHandler(
std::vector<int> aPropertiesWidths(4, nPropertiesDigitWidth * 30);
mpObjectInspectorWidgets->mpPropertiesTreeView->set_column_fixed_widths(aPropertiesWidths);
- auto nMethodsDigitWidth = static_cast<int>(
- mpObjectInspectorWidgets->mpMethodsTreeView->get_approximate_digit_width());
- std::vector<int> aMethodsWidths{ nMethodsDigitWidth * 30, nMethodsDigitWidth * 15,
- nMethodsDigitWidth * 30, nMethodsDigitWidth * 50 };
+ auto nMethodsDigitWidth
+ = mpObjectInspectorWidgets->mpMethodsTreeView->get_approximate_digit_width();
+ std::vector<int> aMethodsWidths{ static_cast<int>(nMethodsDigitWidth * 30),
+ static_cast<int>(nMethodsDigitWidth * 15),
+ static_cast<int>(nMethodsDigitWidth * 30),
+ static_cast<int>(nMethodsDigitWidth * 50) };
mpObjectInspectorWidgets->mpMethodsTreeView->set_column_fixed_widths(aMethodsWidths);
pObjectInspectorWidgets->mpPaned->set_position(160);