fix range input in chart data source dialog
Change-Id: I9c139c6298d25c7a7072d0d0538f1945518d36f2
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user