[Libreoffice-commits] .: cui/source
Norbert Thiebaud
nthiebaud at kemper.freedesktop.org
Wed Jun 8 22:04:19 PDT 2011
cui/source/options/optchart.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 87cf095b1d54faca9aba765ea6efae53079ca542
Author: Rob Snelders <programming at ertai.nl>
Date: Wed Jun 8 18:21:02 2011 +0200
Disable Removebutton in optchart
diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx
index 422c720..6293a8f 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 );
}
}
More information about the Libreoffice-commits
mailing list