[Libreoffice-commits] core.git: sc/source

Wang Lei leiw at apache.org
Thu Mar 14 10:53:45 PDT 2013


 sc/source/core/data/dpoutput.cxx |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

New commits:
commit 166db0df90f1a5443c6914f48848891fa8016782
Author: Wang Lei <leiw at apache.org>
Date:   Thu Jun 14 05:38:10 2012 +0000

    i#119972 - Formula GETPIVOTDATA returns #REF! value
    
    Patch by: pengyunquan
    Review by: Wang Lei
    
    Changed SC_UNO_LAYOUTNAME to SC_UNO_DP_LAYOUTNAME to make it compile.
    (erAck)
    
    Change-Id: I109885d5b2dfbb95207699a7f28741bd347e850b

diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index 5121b5e..820f896 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -1292,6 +1292,23 @@ void lcl_GetTableVars( sal_Int32& rGrandTotalCols, sal_Int32& rGrandTotalRows, s
                     rtl::OUString aSourceName;
                     rtl::OUString aGivenName;
                     ScDPOutput::GetDataDimensionNames( aSourceName, aGivenName, xDim );
+                    try
+                    {
+                        uno::Any aValue = xDimProp->getPropertyValue(
+                                rtl::OUString::createFromAscii(SC_UNO_DP_LAYOUTNAME) );
+
+                        if( aValue.hasValue() )
+                        {
+                            OUString strLayoutName;
+
+                            if( aValue >>= strLayoutName )
+                                if ( strLayoutName.getLength() > 0 )
+                                    aGivenName = strLayoutName;
+                        }
+                    }
+                    catch(uno::Exception&)
+                    {
+                    }
                     rDataNames.push_back( aSourceName );
                     rGivenNames.push_back( aGivenName );
 


More information about the Libreoffice-commits mailing list