[Libreoffice-commits] .: Branch 'feature/dp-named-range-source' - sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Fri Jan 21 09:29:39 PST 2011
sc/source/ui/view/dbfunc3.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 4255ad871ab9566f00545278f873b295155df157
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Fri Jan 21 12:28:11 2011 -0500
Fixed the failure to update table when hitting OK in the dialog.
Modifying the source range of an existing data pilot table was not
updating the table output because the data cache was not refereshed.
diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx
index c47055c..1878492 100644
--- a/sc/source/ui/view/dbfunc3.cxx
+++ b/sc/source/ui/view/dbfunc3.cxx
@@ -654,7 +654,10 @@ bool ScDBFunc::MakePivotTable( const ScDPSaveData& rData, const ScRange& rDest,
else
aObj.SetSaveData( rData );
- BOOL bAllowMove = ( pDPObj != NULL ); // allow re-positioning when editing existing table
+ bool bAllowMove = (pDPObj != NULL); // allow re-positioning when editing existing table
+
+ if (aObj.RefreshCache())
+ return false;
ScDBDocFunc aFunc( *pDocSh );
bool bSuccess = aFunc.DataPilotUpdate( pDPObj, &aObj, TRUE, FALSE, bAllowMove );
More information about the Libreoffice-commits
mailing list