From 0fa87bf6b1b4eb0d2aaeedd8e9ef1496af078f00 Mon Sep 17 00:00:00 2001
From: "Alexander.Trofimov" <Alexander.Trofimov@onlyoffice.com>
Date: Thu, 2 Jun 2016 13:33:22 +0300
Subject: [PATCH] fix bug 32572

---
 cell/view/WorksheetView.js | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/cell/view/WorksheetView.js b/cell/view/WorksheetView.js
index e67e8d188..1d077060f 100644
--- a/cell/view/WorksheetView.js
+++ b/cell/view/WorksheetView.js
@@ -11841,12 +11841,19 @@
 
             if ( addFormatTableOptionsObj && isChangeAutoFilterToTablePart( addFormatTableOptionsObj ) === true )//CHANGE FILTER TO TABLEPART
 			{
-                var addFilterCallBack = function()
+                var filterRange = t.model.AutoFilter.Ref.clone();
+				
+				var addFilterCallBack = function()
 				{
+					History.Create_NewPoint();
+					History.StartTransaction();
+					
 					t.model.autoFilters.changeAutoFilterToTablePart( styleName, ar, addFormatTableOptionsObj );
+					t._onUpdateFormatTable(filterRange, !!(styleName), true);
+					
+					History.EndTransaction();
 				};
 				
-				var filterRange = t.model.AutoFilter.Ref.clone();
 				var addNameColumn = false;
 				if(addFormatTableOptionsObj === false)
 					addNameColumn = true;
-- 
2.30.9