[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Fri Jan 21 09:32:11 PST 2011


 sc/source/ui/view/dbfunc3.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 16f42489559dae67ac99e66e847f9ddf9a348e75
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