[PATCH] fdo#37356: Fix broken transposition during paste of cell range.
Kohei Yoshida
kyoshida at novell.com
Thu May 26 12:45:05 PDT 2011
Refactoring of ScRangeList accidentally skipped the first element during
for loop.
---
sc/source/core/data/clipparam.cxx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sc/source/core/data/clipparam.cxx b/sc/source/core/data/clipparam.cxx
index 7804bcc..bdef09c 100644
--- a/sc/source/core/data/clipparam.cxx
+++ b/sc/source/core/data/clipparam.cxx
@@ -175,7 +175,7 @@ void ScClipParam::transpose()
SCCOL nColOrigin = p->aStart.Col();
SCROW nRowOrigin = p->aStart.Row();
- for ( size_t i = 1, n = maRanges.size(); i < n; ++i )
+ for ( size_t i = 0, n = maRanges.size(); i < n; ++i )
{
p = maRanges[ i ];
SCCOL nColDelta = p->aStart.Col() - nColOrigin;
--
1.7.3.4
--=-Mt+PxPHF3SBdydoB9OyF--
More information about the LibreOffice
mailing list