diff options
author | Eike Rathke <erack@redhat.com> | 2011-11-28 00:26:59 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2011-11-28 15:25:31 +0100 |
commit | e55541cbf0170acfcb62001c8584da3a48c8ecc8 (patch) | |
tree | 2758c432002b8fbd2234a1c84c5f2087b2c45eef /sc/source | |
parent | 22029818cb204cb6b56b6f7d3fc4d14754f2a1cf (diff) |
dr78: #i115659# fix borked boolean logic
# HG changeset patch
# User Daniel Rentz [dr] <daniel.rentz@oracle.com>
# Date 1292346375 -3600
# Node ID 18e64e5db5d0d57b724ef390a7c2dea54b2253be
# Parent 8ec1023e8658320deb61a5b3cdc40aeb9c3d34b1
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/excel/xepivot.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/excel/xepivot.cxx b/sc/source/filter/excel/xepivot.cxx index ba0899e1a28c..72ce8c5b765d 100644 --- a/sc/source/filter/excel/xepivot.cxx +++ b/sc/source/filter/excel/xepivot.cxx @@ -991,10 +991,10 @@ const String& XclExpPTItem::GetItemName() const void XclExpPTItem::SetPropertiesFromMember( const ScDPSaveMember& rSaveMem ) { - // #i115659# GetIsVisible() is not valid if HasIsVisible() returns false, default is true then - ::set_flag( maItemInfo.mnFlags, EXC_SXVI_HIDDEN, !rSaveMem.HasIsVisible() || !rSaveMem.GetIsVisible() ); - // #i115659# GetShowDetails() is not valid if HasShowDetails() returns false, default is true then - ::set_flag( maItemInfo.mnFlags, EXC_SXVI_HIDEDETAIL, !rSaveMem.HasShowDetails() || !rSaveMem.GetShowDetails() ); + // #i115659# GetIsVisible() is not valid if HasIsVisible() returns false, default is 'visible' then + ::set_flag( maItemInfo.mnFlags, EXC_SXVI_HIDDEN, rSaveMem.HasIsVisible() && !rSaveMem.GetIsVisible() ); + // #i115659# GetShowDetails() is not valid if HasShowDetails() returns false, default is 'show detail' then + ::set_flag( maItemInfo.mnFlags, EXC_SXVI_HIDEDETAIL, rSaveMem.HasShowDetails() && !rSaveMem.GetShowDetails() ); // visible name const OUString* pVisName = rSaveMem.GetLayoutName(); |