[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Tue May 24 18:55:29 PDT 2011


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

New commits:
commit 17ec3ef031415fa4ec1a80b9d2415c84e209034d
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
    
    Signed-off-by: Kohei Yoshida <kyoshida at novell.com>

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