incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject svn commit: r1350102 - /incubator/ooo/trunk/main/sc/source/core/data/dpoutput.cxx
Date Thu, 14 Jun 2012 06:38:11 GMT
Author: leiw
Date: Thu Jun 14 06:38:10 2012
New Revision: 1350102

URL: http://svn.apache.org/viewvc?rev=1350102&view=rev
Log:
#i119972 - Formula GETPIVOTDATA returns #REF! value 

          Patch by: pengyunquan
          Review by: Wang Lei

Modified:
    incubator/ooo/trunk/main/sc/source/core/data/dpoutput.cxx

Modified: incubator/ooo/trunk/main/sc/source/core/data/dpoutput.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sc/source/core/data/dpoutput.cxx?rev=1350102&r1=1350101&r2=1350102&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sc/source/core/data/dpoutput.cxx (original)
+++ incubator/ooo/trunk/main/sc/source/core/data/dpoutput.cxx Thu Jun 14 06:38:10 2012
@@ -1134,6 +1134,22 @@ void lcl_GetTableVars( sal_Int32& rGrand
                     String aSourceName;
                     String aGivenName;
                     ScDPOutput::GetDataDimensionNames( aSourceName, aGivenName, xDim );
+					try
+					{	
+						uno::Any aValue = xDimProp->getPropertyValue( rtl::OUString::createFromAscii(SC_UNO_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 );
 



Mime
View raw message