Kaydet (Commit) 0f292510 authored tarafından Wang Lei's avatar Wang Lei

#i119972 - Formula GETPIVOTDATA returns #REF! value

Patch by: pengyunquan
Review by: Wang Lei
üst e407d898
......@@ -1134,6 +1134,22 @@ void lcl_GetTableVars( sal_Int32& rGrandTotalCols, sal_Int32& rGrandTotalRows, s
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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment