summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/tblcpy.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-12-14 21:43:10 +0100
committerJulien Nabet <serval2412@yahoo.fr>2016-12-15 06:13:39 +0000
commit14a0d26d6ae0ee59a685c254ec235fea81636475 (patch)
tree1629abfe81e0fe9584f55b051574b96f9230a17e /sw/source/core/doc/tblcpy.cxx
parentb5cc02ee1b582a6f19e23eb2f1deb1392b3974c0 (diff)
tdf#104554: fix iterator calculus
and avoid unexpected behaviours when pasting columns between tables regression from: https://cgit.freedesktop.org/libreoffice/core/commit/?id=f0fa43ea99ac7564f2cc7ca1d997831808056b68 http://www.cplusplus.com/reference/list/list/insert/ and http://www.cplusplus.com/reference/deque/deque/insert/ helped me to understand my mistake Change-Id: I6ff6b84a90c7ea8db1e4d7c2d12dd191f96141ae Reviewed-on: https://gerrit.libreoffice.org/32020 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw/source/core/doc/tblcpy.cxx')
-rw-r--r--sw/source/core/doc/tblcpy.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/sw/source/core/doc/tblcpy.cxx b/sw/source/core/doc/tblcpy.cxx
index b5bc61c1bb21..c6d42e695a91 100644
--- a/sw/source/core/doc/tblcpy.cxx
+++ b/sw/source/core/doc/tblcpy.cxx
@@ -336,7 +336,6 @@ namespace
if( rpCol == maCols.end() || *rpCol > rnBorder )
{
rpCol = maCols.insert( rpCol, rnBorder );
- --rpCol;
incColSpan( nLine, rnCol );
}
aInfo.mnColSpan = rnCol - nLeftCol;