diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-07-01 18:22:03 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-07-09 16:10:50 +0200 |
commit | 3d7ff1e907713d8ed53a1e193641a2f16de3c38b (patch) | |
tree | aefa2b894a12958bb1e3a3780a400ecc933faeee /cui | |
parent | 311a80e05c9f712f49e4f3a989abef4dabd5fdbc (diff) |
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
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/paragrph.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index a0844d46894b..f9ab85f59ba9 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(); |