summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/rangenam.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-07-16 14:44:02 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-24 23:29:25 -0400
commitd08e9c542517da991a7360fa589331b7b47ecaa4 (patch)
treec093a0dda6c41ecb2c38182e0624e50baff439d5 /sc/source/core/tool/rangenam.cxx
parentecb46af21ef53859255f99762e0e0230a5ccbe29 (diff)
Same with UpdateGrow().
Change-Id: I1424dedbf8201469da28e60d68787ae5aa7d87f9
Diffstat (limited to 'sc/source/core/tool/rangenam.cxx')
-rw-r--r--sc/source/core/tool/rangenam.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx
index 75e79ecbe599..84c3fb942fd7 100644
--- a/sc/source/core/tool/rangenam.cxx
+++ b/sc/source/core/tool/rangenam.cxx
@@ -349,8 +349,12 @@ void ScRangeData::UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY )
(!rRef.Ref2.IsColRel() && !rRef.Ref2.IsRowRel() &&
(!rRef.Ref2.IsFlag3D() || !rRef.Ref2.IsTabRel()))))
{
- if ( ScRefUpdate::UpdateGrow( rArea,nGrowX,nGrowY, rRef ) != UR_NOTHING )
+ ScRange aAbs = rRef.toAbs(aPos);
+ if (ScRefUpdate::UpdateGrow(rArea, nGrowX, nGrowY, aAbs) != UR_NOTHING)
+ {
+ rRef.SetRange(aAbs, aPos);
bChanged = true;
+ }
}
}
}