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

Luboš Luňák l.lunak at suse.cz
Tue Jul 9 07:11:14 PDT 2013


 cui/source/tabpages/paragrph.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3d7ff1e907713d8ed53a1e193641a2f16de3c38b
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Mon Jul 1 18:22:03 2013 +0200

    reset min/max values in paragraph dialog before setting the actual value
    
    SvxRelativeField sets max to 9999 (twips?), but a call to SetFieldUnit()
    converts that to 0.18cm, and that would limit the actual value set.
    
    Change-Id: Ia36e9f840dc0c5bce9c599010d78eac0321c18b3

diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx
index a0844d4..f9ab85f 100644
--- a/cui/source/tabpages/paragrph.cxx
+++ b/cui/source/tabpages/paragrph.cxx
@@ -446,6 +446,8 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet& rSet )
         SetFieldUnit( *m_pLineDistAtMetricBox, eFUnit );
     }
 
+    ELRLoseFocusHdl( NULL ); // reset min/max values
+
     sal_uInt16 _nWhich = GetWhich( SID_ATTR_LRSPACE );
     SfxItemState eItemState = rSet.GetItemState( _nWhich );
 
@@ -604,7 +606,6 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet& rSet )
         }
     }
 
-    ELRLoseFocusHdl( NULL );
     m_pAutoCB->SaveValue();
     m_pContextualCB->SaveValue();
     m_pLineDist->SaveValue();


More information about the Libreoffice-commits mailing list