(related: fdo#62176) Revert "reset min/max values in paragraph ...
... dialog before setting the actual value"
This prevents handling negative first-line indent in Impress, for which
it is necessary that the values are set before the limits.
This reverts commit 3d7ff1e907
.
Change-Id: I47807d7d49716acab3657de1da64c6e9a99fc44d
This commit is contained in:
@@ -431,8 +431,6 @@ 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 );
|
||||||
|
|
||||||
@@ -590,6 +588,10 @@ void SvxStdParagraphTabPage::Reset( const SfxItemSet& rSet )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this sets the min/max limits; do this _after_ setting the values,
|
||||||
|
// because for Impress the min of first-line indent depends on value of
|
||||||
|
// left-indent!
|
||||||
|
ELRLoseFocusHdl( NULL );
|
||||||
m_pAutoCB->SaveValue();
|
m_pAutoCB->SaveValue();
|
||||||
m_pContextualCB->SaveValue();
|
m_pContextualCB->SaveValue();
|
||||||
m_pLineDist->SaveValue();
|
m_pLineDist->SaveValue();
|
||||||
|
Reference in New Issue
Block a user