summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-17 02:09:20 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-17 02:14:13 +0200
commit4cf0759e7c6bd698c929a11c771d2ab03f1b9536 (patch)
tree9f5cec3f9ed677831e555e6903dbae2aa9a2337c /sc
parenteaa81cc2f02e9479cc76dba88a291d285046114d (diff)
fix ScRangeList::DeleteArea for the 4 ranges case
Change-Id: I6321a722be6779d839459ed71b793a46e0968567
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/rangelst.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx
index 7ad721203e34..de87e6cd3121 100644
--- a/sc/source/core/tool/rangelst.cxx
+++ b/sc/source/core/tool/rangelst.cxx
@@ -689,7 +689,7 @@ bool handleFourRanges( const ScRange& rDelRange, ScRange* p, std::vector<ScRange
{
SCTAB nTab = rDelStart.Tab();
- ScRange aNewRange( ScAddress( rPStart.Col(), rDelEnd.Row(), nTab ), rDelEnd );
+ ScRange aNewRange( ScAddress( rPStart.Col(), rDelEnd.Row()+1, nTab ), rPEnd );
rNewRanges.push_back( aNewRange );
aNewRange = ScRange( rPStart.Col(), rDelStart.Row(), nTab, rDelStart.Col() -1, rDelEnd.Row(), nTab );