Tag: cws_src680_rptchart01
User: oj      
Date: 2008-02-20 07:37:28+0000
Modified:
   dba/reportdesign/source/ui/report/ReportController.cxx

Log:
 check if chart is enabled

File Changes:

Directory: /dba/reportdesign/source/ui/report/
==============================================

File [changed]: ReportController.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/source/ui/report/ReportController.cxx?r1=1.6.16.4&r2=1.6.16.5
Delta lines:  +6 -5
-------------------
--- ReportController.cxx        2008-02-19 17:09:52+0000        1.6.16.4
+++ ReportController.cxx        2008-02-20 07:37:25+0000        1.6.16.5
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: ReportController.cxx,v $
  *
- *  $Revision: 1.6.16.4 $
+ *  $Revision: 1.6.16.5 $
  *
- *  last change: $Author: oj $ $Date: 2008/02/19 17:09:52 $
+ *  last change: $Author: oj $ $Date: 2008/02/20 07:37:25 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -3954,8 +3954,8 @@
     if ( !bDone )
     {
         bDone = true;
-        const ::rtl::OUString sConfigName( RTL_CONSTASCII_USTRINGPARAM( 
"/org.openoffice.Office.ReportDesign/UserData" ) );
-        const ::rtl::OUString sPropertyName( RTL_CONSTASCII_USTRINGPARAM( 
"Chart" ) );
+        const ::rtl::OUString sConfigName( RTL_CONSTASCII_USTRINGPARAM( 
"/org.openoffice.Office.ReportDesign" ) );
+        const ::rtl::OUString sPropertyName( RTL_CONSTASCII_USTRINGPARAM( 
"UserData/Chart" ) );
 
         try
         {
@@ -3963,7 +3963,8 @@
                 ::utl::OConfigurationTreeRoot::createWithServiceFactory( 
m_xServiceFactory, sConfigName ) );
 
             sal_Bool bChartEnabled = sal_False;
-            OSL_VERIFY( aConfiguration.getNodeValue( sPropertyName ) >>= 
bChartEnabled );
+            if ( aConfiguration.hasByHierarchicalName(sPropertyName) )
+                aConfiguration.getNodeValue( sPropertyName ) >>= bChartEnabled;
             m_bChartEnabled = bChartEnabled;
         }
         catch(const Exception&)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to