summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docfunc.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-05-25 03:32:09 +0200
committerKohei Yoshida <kyoshida@novell.com>2011-05-24 21:53:54 -0400
commit3877519bb4b40bd0771a0bc59238a2203eae1d20 (patch)
tree11bb03b5f73121e9e815e9fce048cd2c1c2793e0 /sc/source/ui/docshell/docfunc.cxx
parent3939664580377258fcd8734ce173baf648f42507 (diff)
fix for fdo#37548: InsertNames->InsertAll doesn't insert anything
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 62ced922b01f..2f04f83934a9 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -4721,7 +4721,7 @@ sal_Bool ScDocFunc::InsertNameList( const ScAddress& rStartPos, sal_Bool bApi )
for (ScRangeName::iterator itr = itrBeg; itr != itrEnd; ++itr)
{
const ScRangeData& r = *itr;
- if (r.HasType(RT_DATABASE && !r.HasType(RT_SHARED)))
+ if (!r.HasType(RT_DATABASE) && !r.HasType(RT_SHARED))
++nValidCount;
}