summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-05-26 12:49:24 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-26 12:49:24 +0200
commit60d555c83c6fb56b01e5db3e2b76351faed9f718 (patch)
treee9406a7faf737e6a1afc9477b9246e24ed672ad9
parent574d1f2004244c86d4b73d0623674d7fe4c88aa0 (diff)
-rw-r--r--cui/source/options/optchart.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx
index f5c25dc47..422c720d1 100644
--- a/cui/source/options/optchart.cxx
+++ b/cui/source/options/optchart.cxx
@@ -234,7 +234,7 @@ IMPL_LINK( SvxDefaultColorOptPage, RemoveChartColor, PushButton*, pButton )
if( pColorConfig )
{
- DBG_ASSERT(pColorConfig.size() > 1, "don't delete the last chart color");
+ OSL_ENSURE(pColorConfig->GetColorTable().size() > 1, "don't delete the last chart color");
QueryBox aQuery(pButton, CUI_RES(RID_OPTQB_COLOR_CHART_DELETE));
aQuery.SetText(String(CUI_RES(RID_OPTSTR_COLOR_CHART_DELETE)));
if(RET_YES == aQuery.Execute())