[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Tue May 24 18:54:53 PDT 2011


 sc/source/ui/docshell/docfunc.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d2aaa5c40fb607f271558fcddfd1af7859105887
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Wed May 25 03:32:09 2011 +0200

    fix for fdo#37548: InsertNames->InsertAll doesn't insert anything

diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index a0e5355..b752383 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;
     }
 


More information about the Libreoffice-commits mailing list