[Libreoffice-commits] .: Branch 'integration/dev300_m106' - cui/source

David Tardon dtardon at kemper.freedesktop.org
Thu May 26 03:49:33 PDT 2011


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

New commits:
commit 60d555c83c6fb56b01e5db3e2b76351faed9f718
Author: David Tardon <dtardon at redhat.com>
Date:   Thu May 26 12:49:24 2011 +0200

    fix debug 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