[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Wed Jan 11 08:51:49 PST 2012
sc/source/core/data/dpobject.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 390c0b86a91f6c65e8da84b26ecd9c2b726715b8
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date: Wed Jan 11 11:50:26 2012 -0500
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.
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 8cc76c7..51be02d 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();
More information about the Libreoffice-commits
mailing list