summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorJian Fang Zhang <zhangjf@apache.org>2012-09-12 10:33:44 +0000
committerJian Fang Zhang <zhangjf@apache.org>2012-09-12 10:33:44 +0000
commit305986a4ee0f1294d629c51c75d8f793b5b80e1d (patch)
treee21394d1f2bbe3a8b65f32280a058bea2218836a /oox
parentc39ca3fc96997af37451831a2a6b9d69b1ec320b (diff)
#i119512#, when importing MS Excel, if there is blank item selected in page filed of Pivot Table, the selection will be lost
Found by: shan zhu Patch by: bjcheny Review by: Yolanda Zhang Ying
Notes
Notes: merged as: af04930d1513f1274e8a69b96e6941ca43cfc901
Diffstat (limited to 'oox')
-rw-r--r--oox/source/xls/pivottablebuffer.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/oox/source/xls/pivottablebuffer.cxx b/oox/source/xls/pivottablebuffer.cxx
index a34fe8c756e0..49387ba0599c 100644
--- a/oox/source/xls/pivottablebuffer.cxx
+++ b/oox/source/xls/pivottablebuffer.cxx
@@ -646,8 +646,7 @@ void PivotTableField::convertPageField( const PTPageFieldModel& rPageField )
if( const PivotCacheItem* pSharedItem = pCacheField->getCacheItem( nCacheItem ) )
{
OUString aSelectedPage = pSharedItem->getName();
- if( aSelectedPage.getLength() > 0 )
- aPropSet.setProperty( PROP_SelectedPage, aSelectedPage );
+ aPropSet.setProperty( PROP_SelectedPage, aSelectedPage );
}
}
}