Commit e965ee72 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

для bug #24245 - Скопированный при помощи Copy Style стиль ячейки невозможно...

для bug #24245 - Скопированный при помощи Copy Style стиль ячейки невозможно вставить на другой лист

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68144 954022d7-b5bf-4e40-9824-e11837661b57
parent b1d8dca4
This diff is collapsed.
......@@ -7730,13 +7730,12 @@
WorksheetView.prototype.applyFormatPainter = function () {
var t = this;
var from = t.handlers.trigger('getRangeFormatPainter'), to = t.activeRange.getAllRange();
var oTmpRange = this._getRange( 0, 0, 0, 0 );
var onApplyFormatPainterCallback = function ( isSuccess ) {
// Очищаем выделение
t.cleanSelection();
if ( true === isSuccess ) {
oTmpRange.promoteFromTo( from, to );
promoteFromTo(from, t.model, to, t.model);
}
t.expandColsOnScroll( false, true, to.c2 + 1 );
......@@ -7751,7 +7750,7 @@
t._recalculateAfterUpdate( [to] );
};
var result = oTmpRange.preparePromoteFromTo( from, to );
var result = preparePromoteFromTo( from, to );
if ( !result ) {
// ToDo вывести ошибку
onApplyFormatPainterCallback( false );
......
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