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

Jian Fang Zhang zhangjf at apache.org
Mon Jun 17 08:23:21 PDT 2013


 sc/source/filter/oox/pivottablebuffer.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit af04930d1513f1274e8a69b96e6941ca43cfc901
Author: Jian Fang Zhang <zhangjf at apache.org>
Date:   Wed Sep 12 10:33:44 2012 +0000

    Resolves: #i119512# selection lost if there is blank item selected...
    
    in page filed of Pivot Table
    
    Found by: shan zhu
    Patch by: bjcheny
    Review by: Yolanda Zhang Ying
    
    (cherry picked from commit 305986a4ee0f1294d629c51c75d8f793b5b80e1d)
    
    Conflicts:
    	oox/source/xls/pivottablebuffer.cxx
    
    Change-Id: Ied8ca19738e9b2e7bb596010f7ae9e308792fcbc

diff --git a/sc/source/filter/oox/pivottablebuffer.cxx b/sc/source/filter/oox/pivottablebuffer.cxx
index 6303a05..2a1582b 100644
--- a/sc/source/filter/oox/pivottablebuffer.cxx
+++ b/sc/source/filter/oox/pivottablebuffer.cxx
@@ -578,8 +578,7 @@ void PivotTableField::convertPageField( const PTPageFieldModel& rPageField )
                 if( const PivotCacheItem* pSharedItem = pCacheField->getCacheItem( nCacheItem ) )
                 {
                     OUString aSelectedPage = pSharedItem->getName();
-                    if( !aSelectedPage.isEmpty() )
-                        aPropSet.setProperty( PROP_SelectedPage, aSelectedPage );
+                    aPropSet.setProperty( PROP_SelectedPage, aSelectedPage );
                 }
             }
         }


More information about the Libreoffice-commits mailing list