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

New commits:
commit b7b38179f1297bba60348d5b4be646003f3212e3
Author:     Pranam Lashkari <lpra...@collabora.com>
AuthorDate: Fri Jul 25 02:01:38 2025 +0400
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Fri Jul 25 08:08: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 <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index fda0b3c0905c..32f26729db5a 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -1826,7 +1826,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 74d833ae2b41..2de197c58cec 100644
--- a/svx/source/tbxctrls/tbunocontroller.cxx
+++ b/svx/source/tbxctrls/tbunocontroller.cxx
@@ -25,6 +25,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>
@@ -241,7 +242,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