[Libreoffice-commits] .: cui/source

Caolán McNamara caolan at kemper.freedesktop.org
Mon Apr 4 06:54:23 PDT 2011


 cui/source/options/optchart.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3764b31aae43883c6b13b91c6ad8d0daa59f4ba5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Apr 4 14:54:15 2011 +0100

    fix --enable-dbgutil build

diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx
index f5c25dc..422c720 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())


More information about the Libreoffice-commits mailing list