summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorRob Snelders <programming@ertai.nl>2011-06-08 18:21:02 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-06-08 23:57:56 -0500
commit61d40bdb2fc3c3270f762ed3ea4e2e4282a4e032 (patch)
treecd9dcc57513a9c446d4f0314c8356cb91de2691e /cui/source
parent8a962baff610ab0ba8adad42e54fda3524590952 (diff)
Disable Removebutton in optchart
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/options/optchart.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx
index 13b861f07187..68a4fad5bc2b 100644
--- a/cui/source/options/optchart.cxx
+++ b/cui/source/options/optchart.cxx
@@ -196,6 +196,7 @@ IMPL_LINK( SvxDefaultColorOptPage, ResetToDefaults, void *, EMPTYARG )
aLbChartColors.GetFocus();
aLbChartColors.SelectEntryPos( 0 );
+ aPBRemove.Enable( sal_True );
}
return 0L;
@@ -217,6 +218,7 @@ IMPL_LINK( SvxDefaultColorOptPage, AddChartColor, void *, EMPTYARG )
aLbChartColors.GetFocus();
aLbChartColors.SelectEntryPos( pColorConfig->GetColorTable().size() - 1 );
+ aPBRemove.Enable( sal_True );
}
return 0L;
@@ -251,6 +253,8 @@ IMPL_LINK( SvxDefaultColorOptPage, RemoveChartColor, PushButton*, pButton )
aLbChartColors.SelectEntryPos( pColorConfig->GetColorTable().size() - 1 );
else if (aLbChartColors.GetEntryCount() > 0)
aLbChartColors.SelectEntryPos( nIndex );
+ else
+ aPBRemove.Enable( sal_False );
}
}