Kaydet (Commit) 3d7ff1e9 authored tarafından Luboš Luňák's avatar Luboš Luňák

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
üst 311a80e0
...@@ -446,6 +446,8 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet& rSet ) ...@@ -446,6 +446,8 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet& rSet )
SetFieldUnit( *m_pLineDistAtMetricBox, eFUnit ); SetFieldUnit( *m_pLineDistAtMetricBox, eFUnit );
} }
ELRLoseFocusHdl( NULL ); // reset min/max values
sal_uInt16 _nWhich = GetWhich( SID_ATTR_LRSPACE ); sal_uInt16 _nWhich = GetWhich( SID_ATTR_LRSPACE );
SfxItemState eItemState = rSet.GetItemState( _nWhich ); SfxItemState eItemState = rSet.GetItemState( _nWhich );
...@@ -604,7 +606,6 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet& rSet ) ...@@ -604,7 +606,6 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet& rSet )
} }
} }
ELRLoseFocusHdl( NULL );
m_pAutoCB->SaveValue(); m_pAutoCB->SaveValue();
m_pContextualCB->SaveValue(); m_pContextualCB->SaveValue();
m_pLineDist->SaveValue(); m_pLineDist->SaveValue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment