svx/source/tbxctrls/tbcontrl.cxx        |    2 +-
 svx/source/tbxctrls/tbunocontroller.cxx |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 26e22145fea33e925adedfeb2cb2c46d7daa1ffc
Author:     Pranam Lashkari <[email protected]>
AuthorDate: Fri Jul 25 02:01:38 2025 +0400
Commit:     Pranam Lashkari <[email protected]>
CommitDate: Wed Aug 13 14:32:29 2025 +0200

    kit: always send text change update for font combobox
    
    problem:
    in online some font widgets are duplicated at multiple places,
    if the text update messages are not sent then text is only
    reflected in the combobox where actions were performed and rest
    are not updated
    
    Change-Id: I147e16150c6acb646cc1578fb093a246e4f3a1ff
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188303
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Szymon Kłos <[email protected]>
    (cherry picked from commit b7b38179f1297bba60348d5b4be646003f3212e3)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189462
    Reviewed-by: Pranam Lashkari <[email protected]>
    Tested-by: Jenkins

diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index c2b945cf8811..abbeef7ad5fa 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -1824,7 +1824,7 @@ void SvxFontNameBox_Base::Update( const 
css::awt::FontDescriptor* pFontDesc )
     }
     OUString aCurName = aCurFont.GetFamilyName();
     OUString aText = m_xWidget->get_active_text();
-    if (aText != aCurName)
+    if (aText != aCurName || comphelper::LibreOfficeKit::isActive())
         set_active_or_entry_text(aCurName);
 }
 
diff --git a/svx/source/tbxctrls/tbunocontroller.cxx 
b/svx/source/tbxctrls/tbunocontroller.cxx
index c58e3053c731..74c95433e521 100644
--- a/svx/source/tbxctrls/tbunocontroller.cxx
+++ b/svx/source/tbxctrls/tbunocontroller.cxx
@@ -24,6 +24,7 @@
 #include <com/sun/star/util/XURLTransformer.hpp>
 
 #include <comphelper/propertyvalue.hxx>
+#include <comphelper/lok.hxx>
 #include <rtl/math.hxx>
 #include <utility>
 #include <vcl/event.hxx>
@@ -233,7 +234,7 @@ void SvxFontSizeBox_Base::statusChanged_Impl( tools::Long 
nPoint, bool bErase )
         tools::Long nVal = nPoint;
 
         // changed => set new value
-        if (m_xWidget->get_value() != nVal)
+        if (m_xWidget->get_value() != nVal || 
comphelper::LibreOfficeKit::isActive())
             m_xWidget->set_value(nVal);
     }
     else

Reply via email to