Commit eb997125 authored by GoshaZotov's avatar GoshaZotov

change function getSpecialPasteCoords

return cellCoord as array
parent bd84ac28
......@@ -10037,9 +10037,29 @@
//TODO пересмотреть когда иконка вылезает за пределы области видимости
var cellCoord = this.getCellCoord(range.c2, range.r2);
if(!isVisible || window['AscCommon'].g_clipboardBase.specialPasteButtonProps.shapeId)
if(window['AscCommon'].g_clipboardBase.specialPasteButtonProps.shapeId)
{
disableCoords();
cellCoord = [cellCoord];
}
else
{
if (!isVisible)
{
var visibleRange = this.getVisibleRange();
var intersectionVisibleRange = visibleRange.intersection(range);
if(intersectionVisibleRange)
{
cellCoord = [];
cellCoord[0] = this.getCellCoord(intersectionVisibleRange.c2, intersectionVisibleRange.r2);
cellCoord[1] = this.getCellCoord(range.c1, range.r1);
}
else
{
disableCoords();
cellCoord = [cellCoord];
}
}
else
{
......@@ -10052,6 +10072,8 @@
{
disableCoords();
}
cellCoord = [cellCoord];
}
}
return cellCoord;
......
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