summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-30 01:34:24 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-30 02:21:08 +0100
commit5e29af062de877476f5382e8d7368c3de4409b47 (patch)
tree7917a9619341d500104f335cb894291b223c3aa2 /sc
parentfa7b61a087656f3b23b33492795a5bdd266776fd (diff)
if no cond format is valid use the existing protection, fdo#58826
Change-Id: Ib52a546a98f681b918de5e3bd285c36407fa8254
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/attarray.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx
index 201538d6fe7f..8059b178790a 100644
--- a/sc/source/core/data/attarray.cxx
+++ b/sc/source/core/data/attarray.cxx
@@ -1278,6 +1278,8 @@ bool ScAttrArray::HasAttrib( SCROW nRow1, SCROW nRow2, sal_uInt16 nMask ) const
const ScProtectionAttr* pCondProtect = static_cast<const ScProtectionAttr*>(pItem);
if( pCondProtect->GetProtection() || pProtect->GetHideCell() )
bFoundCond = true;
+ else
+ break;
}
else
{
@@ -1285,7 +1287,7 @@ bool ScAttrArray::HasAttrib( SCROW nRow1, SCROW nRow2, sal_uInt16 nMask ) const
// but existing one + cell where conditional
// formatting does not remove it
// => we have a protected cell
- bFoundCond = true;
+ bFoundCond = bFoundTemp;
}
}
bFoundTemp = bFoundCond;