From 66d0a488979facf43b3e236fe4ac025776b1582b Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 4 Oct 2012 20:46:54 +0200 Subject: workaround broken uno implementatiion with ScRangeList Change-Id: Ied665e59ada98c25651be562c4a2fe54ffd1ec6a Signed-off-by: Stephan Bergmann --- sc/source/core/tool/rangelst.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx index 19321b5ef4a3..e99e47fc1779 100644 --- a/sc/source/core/tool/rangelst.cxx +++ b/sc/source/core/tool/rangelst.cxx @@ -438,6 +438,9 @@ bool ScRangeList::UpdateReference( } } + if(maRanges.empty()) + return true; + vector::iterator itr = maRanges.begin(), itrEnd = maRanges.end(); for (; itr != itrEnd; ++itr) { @@ -460,6 +463,16 @@ bool ScRangeList::UpdateReference( pR->aEnd.Set( theCol2, theRow2, theTab2 ); } } + + if(eUpdateRefMode == URM_INSDEL) + { + if(nDx < 0 || nDy < 0) + { + size_t n = maRanges.size(); + Join(*maRanges[n-1], true); + } + } + return bChanged; } -- cgit