[Libreoffice-commits] .: sc/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Fri Mar 2 01:25:03 PST 2012


 sc/source/core/data/table3.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 73e9eac0e86e4ab5dec09dfde890eca8760d298a
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Fri Mar 2 10:20:27 2012 +0100

    add missing loop conditions

diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index da43fbc..613bd6d 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -604,6 +604,7 @@ void ScTable::SwapCol(SCCOL nCol1, SCCOL nCol2)
     }
 
     itr = aNoteMap.begin();
+    while(itr != aNoteMap.end())
     {
         //we can here assume that there is no note in the target location
         SCCOL nCol = itr->first.first;
@@ -667,6 +668,7 @@ void ScTable::SwapRow(SCROW nRow1, SCROW nRow2)
     }
 
     itr = aNoteMap.begin();
+    while(itr != aNoteMap.end())
     {
         //we can here assume that there is no note in the target location
         SCCOL nCol = itr->first.first;


More information about the Libreoffice-commits mailing list