diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-11 11:50:26 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-11 11:52:41 -0500 |
commit | 34219bd53d4270e6741e2b8596b4210e1c47da1a (patch) | |
tree | 99b4d0aa1d2f096a9db69a3a9572777710f51986 /sc | |
parent | 7ad72045d7c3a99dbb67f817ad570097de383c3f (diff) |
fdo#44661: No need to update the source range when it's a named range.
Otherwise deleting a sheet that shifts the position of the pivot table
would turn the named range into the raw range that the name references.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index 8cc76c7d43ca..51be02db8971 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -745,6 +745,11 @@ void ScDPObject::UpdateReference( UpdateRefMode eUpdateRefMode, if ( pSheetDesc ) { + const OUString& rRangeName = pSheetDesc->GetRangeName(); + if (!rRangeName.isEmpty()) + // Source range is a named range. No need to update. + return; + const ScRange& rSrcRange = pSheetDesc->GetSourceRange(); nCol1 = rSrcRange.aStart.Col(); nRow1 = rSrcRange.aStart.Row(); |