fix range input in chart data source dialog

Change-Id: I9c139c6298d25c7a7072d0d0538f1945518d36f2
This commit is contained in:
Markus Mohrhard
2014-06-19 15:34:50 +02:00
parent 66ac7430b6
commit d5a0926c23

View File

@@ -736,8 +736,17 @@ IMPL_LINK_NOARG(DataSourceTabPage, DownButtonClickedHdl)
IMPL_LINK( DataSourceTabPage, RangeModifiedHdl, Edit*, pEdit ) IMPL_LINK( DataSourceTabPage, RangeModifiedHdl, Edit*, pEdit )
{ {
// note: isValid sets the color of the edit field
if( isRangeFieldContentValid( *pEdit )) if( isRangeFieldContentValid( *pEdit ))
{
setDirty(); setDirty();
updateModelFromControl( pEdit );
if( pEdit == m_pEDT_RANGE )
{
if( ! lcl_UpdateCurrentSeriesName( *m_pLB_SERIES ))
fillSeriesListBox();
}
}
// enable/disable OK button // enable/disable OK button
isValid(); isValid();
@@ -752,7 +761,7 @@ IMPL_LINK( DataSourceTabPage, RangeUpdateDataHdl, Edit*, pEdit )
{ {
setDirty(); setDirty();
updateModelFromControl( pEdit ); updateModelFromControl( pEdit );
if( pEdit== m_pEDT_RANGE ) if( pEdit == m_pEDT_RANGE )
{ {
if( ! lcl_UpdateCurrentSeriesName( *m_pLB_SERIES )) if( ! lcl_UpdateCurrentSeriesName( *m_pLB_SERIES ))
fillSeriesListBox(); fillSeriesListBox();