summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-02 12:44:14 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-03-02 15:37:07 +0100
commita2d5b5224aff4358865e73c3c0f67d47ce4b9b99 (patch)
tree0a7dd2c7cc966e52e3169890a6dde53cfbd06b00
parentb371f746d7b48826121665bbec207fcbcf4f0a44 (diff)
Revert "tdf#43175: Adapt ranges when copying or moving several sheets"
because it causes failure in the tdf101894 part of UITest_chart This reverts commit 3078044653f1e1b0a055c47eeb8d27834c07268a. Change-Id: If187b7a1125eb6f85bb7329bd9029dc8236a85f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111822 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sc/source/ui/view/viewfun2.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 814e3a05b7b3..112226405232 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -3084,10 +3084,6 @@ void ScViewFunc::MoveTable(
nDestTab1=nTabCount;
}
}
- //If sheets are copied or renamed when moved, the references to the data inside the sheets have to be adapted
- if (bCopy || bRename)
- ScChartHelper::AdjustRangesOfChartsOnDestinationPage(rDoc, rDestDoc, nMovTab,
- nDestTab1);
pDestTabs->push_back(nDestTab1);
}
@@ -3137,6 +3133,9 @@ void ScViewFunc::MoveTable(
SetTabNo( nNewTab, true );
+ //#i29848# adjust references to data on the copied sheet
+ if( bCopy )
+ ScChartHelper::AdjustRangesOfChartsOnDestinationPage( rDoc, rDestDoc, nTab, nNewTab );
}
}