Commit 9c0c10a6 authored by Alexey.Musinov's avatar Alexey.Musinov

Merge branch 'develop' of https://github.com/ONLYOFFICE/sdkjs into develop

* 'develop' of https://github.com/ONLYOFFICE/sdkjs:
  fix send onFilterInfo if undo/redo(apply changes) on filter
  fix bug 34359
  send onFilterInfo if undo/redo(apply changes) on filter
  fix Bug 32415
parents dee457c5 1e978fed
...@@ -1379,6 +1379,8 @@ ...@@ -1379,6 +1379,8 @@
}, },
"deleteColumnTablePart": function(tableName, deleted) { "deleteColumnTablePart": function(tableName, deleted) {
self.dependencyFormulas.delColumnTable(tableName, deleted); self.dependencyFormulas.delColumnTable(tableName, deleted);
}, 'onFilterInfo' : function () {
self.handlers.trigger("asc_onFilterInfo");
} }
} ); } );
for(var i = 0, length = tableCustomFunc.length; i < length; ++i) { for(var i = 0, length = tableCustomFunc.length; i < length; ++i) {
......
...@@ -973,6 +973,7 @@ ...@@ -973,6 +973,7 @@
break; break;
case AscCH.historyitem_AutoFilter_ApplyMF: case AscCH.historyitem_AutoFilter_ApplyMF:
this.applyAutoFilter(data.autoFiltersObject, data.activeCells); this.applyAutoFilter(data.autoFiltersObject, data.activeCells);
this.worksheet.handlers.trigger('onFilterInfo');
break; break;
case AscCH.historyitem_AutoFilter_Move: case AscCH.historyitem_AutoFilter_Move:
this._moveAutoFilters(data.moveTo, data.moveFrom); this._moveAutoFilters(data.moveTo, data.moveFrom);
...@@ -1180,6 +1181,9 @@ ...@@ -1180,6 +1181,9 @@
} }
} }
} }
if (AscCH.historyitem_AutoFilter_ApplyMF === type) {
this.worksheet.handlers.trigger('onFilterInfo');
}
} }
else if(cloneData.Ref) //удаление таблиц / автофильтров else if(cloneData.Ref) //удаление таблиц / автофильтров
{ {
......
...@@ -1023,9 +1023,11 @@ ...@@ -1023,9 +1023,11 @@
} }
if (event.altKey) { if (event.altKey) {
t.handlers.trigger('addFunction', 'SUM', Asc.c_oAscPopUpSelectorType.Func, true); this.handlers.trigger('addFunction',
AscCommonExcel.cFormulaFunctionToLocale ? AscCommonExcel.cFormulaFunctionToLocale['SUM'] :
'SUM', Asc.c_oAscPopUpSelectorType.Func, true);
} else { } else {
t.skipKeyPress = false; this.skipKeyPress = false;
} }
return true; return true;
...@@ -1035,7 +1037,7 @@ ...@@ -1035,7 +1037,7 @@
return result; return result;
default: default:
t.skipKeyPress = false; this.skipKeyPress = false;
return true; return true;
} // end of switch } // end of switch
......
...@@ -363,10 +363,15 @@ CImageShape.prototype.recalculateBrush = CShape.prototype.recalculateBrush; ...@@ -363,10 +363,15 @@ CImageShape.prototype.recalculateBrush = CShape.prototype.recalculateBrush;
CImageShape.prototype.recalculatePen = function() CImageShape.prototype.recalculatePen = function()
{ {
CShape.prototype.recalculatePen.call(this); CShape.prototype.recalculatePen.call(this);
if(this.pen && AscFormat.isRealNumber(this.pen.w)) if(this.pen)
{ {
if(AscFormat.isRealNumber(this.pen.w)){
this.pen.w *= 2; this.pen.w *= 2;
} }
// if(!this.pen.Fill){
// this.pen = null;
// }
}
}; };
CImageShape.prototype.getCompiledLine = CShape.prototype.getCompiledLine; CImageShape.prototype.getCompiledLine = CShape.prototype.getCompiledLine;
......
...@@ -865,7 +865,7 @@ ParaDrawing.prototype.CheckWH = function() ...@@ -865,7 +865,7 @@ ParaDrawing.prototype.CheckWH = function()
var yc = this.GraphicObj.localTransform.TransformPointY(this.GraphicObj.extX / 2, this.GraphicObj.extY / 2); var yc = this.GraphicObj.localTransform.TransformPointY(this.GraphicObj.extX / 2, this.GraphicObj.extY / 2);
var oBounds = this.GraphicObj.bounds; var oBounds = this.GraphicObj.bounds;
var LineCorrect = 0; var LineCorrect = 0;
if (this.GraphicObj.pen) if (this.GraphicObj.pen && this.GraphicObj.pen.Fill && this.GraphicObj.pen.Fill.fill)
{ {
LineCorrect = (this.GraphicObj.pen.w == null) ? 12700 : parseInt(this.GraphicObj.pen.w); LineCorrect = (this.GraphicObj.pen.w == null) ? 12700 : parseInt(this.GraphicObj.pen.w);
LineCorrect /= 72000.0; LineCorrect /= 72000.0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment