[Libreoffice-commits] .: Branch 'feature/unlimited-number-of-sheets' - sc/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Mon Jun 6 18:39:31 PDT 2011


 sc/source/core/data/markdata.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit c93818d47a2f267db53458f9a8bbc55369770ae3
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue Jun 7 03:37:19 2011 +0200

    fix selection problem
    
    the old implemantation inserted an false value and not an positive value, an entry in the set represents now a positive value

diff --git a/sc/source/core/data/markdata.cxx b/sc/source/core/data/markdata.cxx
index 81a4115..a9951e1 100644
--- a/sc/source/core/data/markdata.cxx
+++ b/sc/source/core/data/markdata.cxx
@@ -603,7 +603,6 @@ sal_Bool ScMarkData::HasAnyMultiMarks() const
 void ScMarkData::InsertTab( SCTAB nTab )
 {
     std::set<SCTAB> tabMarked(maTabMarked.begin(), maTabMarked.upper_bound(nTab));
-    tabMarked.insert( nTab );
     std::set<SCTAB>::iterator it = maTabMarked.upper_bound(nTab);
     for (; it != maTabMarked.end(); ++it)
         tabMarked.insert(*it + 1);


More information about the Libreoffice-commits mailing list