From fba6aaf0e8aa77f012dda2fd44dc2adfd01ed48e Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Tue, 16 Jan 2024 22:04:30 +0300 Subject: [PATCH] Only height should be increased for LIB_TREE_RENDERER. --- common/lib_tree_model_adapter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/lib_tree_model_adapter.cpp b/common/lib_tree_model_adapter.cpp index b76ca1e363..1dab3aadb1 100644 --- a/common/lib_tree_model_adapter.cpp +++ b/common/lib_tree_model_adapter.cpp @@ -47,9 +47,7 @@ public: wxSize GetSize() const override { - wxSize size( GetOwner()->GetWidth(), GetTextExtent( m_text ).y ); - size.IncBy( 2, 2 ); - return size; + return wxSize( GetOwner()->GetWidth(), GetTextExtent( m_text ).y + 2 ); } bool GetValue( wxVariant& aValue ) const override