[Libreoffice-commits] core.git: sfx2/source

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Sat May 15 08:01:29 UTC 2021


 sfx2/source/devtools/ObjectInspectorTreeHandler.cxx |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

New commits:
commit 2668f93205e5c006d1f8228aaef8dda0403bc08a
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Fri May 14 11:28:17 2021 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sat May 15 10:00:48 2021 +0200

    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 at yahoo.fr>

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);


More information about the Libreoffice-commits mailing list