cui/source/tabpages/chardlg.cxx |    5 ++++-
 cui/uiconfig/ui/positionpage.ui |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit cb566ac3e1439f2afe883aacc30da3d3cb6343ec
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Mon Nov 7 15:01:53 2022 +0100
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Thu Nov 10 11:12:39 2022 +0100

    tdf#107405 Allow kerning less than -2
    
    Fallout from 9a745d54a5c7470180f41494283983a3b8b84a51
    
    Change-Id: Ied4d83eb614830718cf304e7010f17516e4a9429
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142388
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
    (cherry picked from commit 7f4f536ca9195c7d53463527f00897b65d062486)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142515
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index 226fe846ee3d..0dcc60cb2deb 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -2766,10 +2766,13 @@ void SvxCharPositionPage::Reset( const SfxItemSet* rSet 
)
         rCJKFont.SetFixKerning( static_cast<short>(nKern) );
         rCTLFont.SetFixKerning( static_cast<short>(nKern) );
 
-        //the attribute value must be displayed also if it's above the maximum 
allowed value
+        //the attribute value must be displayed also if it's above/below the 
maximum allowed value
         tools::Long nVal = 
static_cast<tools::Long>(m_xKerningMF->get_max(FieldUnit::POINT));
         if(nVal < nKerning)
             m_xKerningMF->set_max(nKerning, FieldUnit::POINT);
+        nVal = 
static_cast<tools::Long>(m_xKerningMF->get_min(FieldUnit::POINT));
+        if (nVal > nKerning)
+            m_xKerningMF->set_min(nKerning, FieldUnit::POINT);
         m_xKerningMF->set_value(nKerning, FieldUnit::POINT);
     }
     else
diff --git a/cui/uiconfig/ui/positionpage.ui b/cui/uiconfig/ui/positionpage.ui
index 23d476bbe282..ad962316a73d 100644
--- a/cui/uiconfig/ui/positionpage.ui
+++ b/cui/uiconfig/ui/positionpage.ui
@@ -17,7 +17,7 @@
     <property name="page_increment">10</property>
   </object>
   <object class="GtkAdjustment" id="adjustment3">
-    <property name="lower">-2</property>
+    <property name="lower">-1000</property>
     <property name="upper">1000</property>
     <property name="step_increment">0.1</property>
     <property name="page_increment">1</property>

Reply via email to