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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user