Commit 2d5acbda authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 26494 - [CoEdit] Ошибка в консоли после передачи диаграммы с заливкой изображением

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58244 954022d7-b5bf-4e40-9824-e11837661b57
parent 00e6653f
...@@ -32,9 +32,25 @@ function DrawingBounds(minX, maxX, minY, maxY) ...@@ -32,9 +32,25 @@ function DrawingBounds(minX, maxX, minY, maxY)
function getFullImageSrc(src) { function getFullImageSrc(src) {
if ( 0 != src.indexOf("http:") && 0 != src.indexOf("data:") && 0 != src.indexOf("https:") && 0 != src.indexOf("ftp:") && 0 != src.indexOf("file:") ) { if ( 0 != src.indexOf("http:") && 0 != src.indexOf("data:") && 0 != src.indexOf("https:") && 0 != src.indexOf("ftp:") && 0 != src.indexOf("file:") ) {
var api = window["Asc"]["editor"]; var api = window["Asc"]["editor"];
if ( 0 == src.indexOf(g_sResourceServiceLocalUrl + api.documentId) ) if(api)
return src; {
return g_sResourceServiceLocalUrl + api.documentId + "/media/" + src; if ( 0 == src.indexOf(g_sResourceServiceLocalUrl + api.documentId) )
return src;
return g_sResourceServiceLocalUrl + api.documentId + "/media/" + src;
}
else
{
if(editor)
{
if (0 == src.indexOf(editor.DocumentUrl))
return src;
return editor.DocumentUrl + "media/" + src;
}
else
{
return src;
}
}
} }
else else
return src; return src;
......
...@@ -1042,6 +1042,11 @@ function CDrawingDocument() ...@@ -1042,6 +1042,11 @@ function CDrawingDocument()
return false; return false;
} }
this.ConvertCoordsToAnotherPage = function(x, y)
{
return {X: x, Y: y};
};
this.SetCursorType = function(sType) this.SetCursorType = function(sType)
{ {
if ("" == this.m_sLockedCursorType) if ("" == this.m_sLockedCursorType)
......
...@@ -3561,13 +3561,13 @@ CTable.prototype = ...@@ -3561,13 +3561,13 @@ CTable.prototype =
var Alpha, RGBA = CellShd.Get_Color3(Theme, ColorMap); var Alpha, RGBA = CellShd.Get_Color3(Theme, ColorMap);
if(isRealNumber(CellShd.Unifill.transparent)) if(isRealNumber(CellShd.Unifill.transparent))
{ {
Alpha = 255 - CellShd.Unifill.transparent; Alpha = CellShd.Unifill.transparent;
} }
else else
{ {
Alpha = 255; Alpha = 255;
} }
pGraphics.b_color1( RGBA.r, RGBA.g, RGBA.b, Alpha ); pGraphics.b_color1( RGBA.R, RGBA.G, RGBA.B, Alpha );
pGraphics.TableRect(Math.min(X_cell_start, X_cell_end), Math.min(Y, Y + RealHeight), Math.abs(X_cell_end - X_cell_start), Math.abs(RealHeight)); pGraphics.TableRect(Math.min(X_cell_start, X_cell_end), Math.min(Y, Y + RealHeight), Math.abs(X_cell_end - X_cell_start), Math.abs(RealHeight));
} }
else else
...@@ -3661,13 +3661,13 @@ CTable.prototype = ...@@ -3661,13 +3661,13 @@ CTable.prototype =
var Alpha, RGBA = CellShd.Get_Color3(Theme, ColorMap); var Alpha, RGBA = CellShd.Get_Color3(Theme, ColorMap);
if(isRealNumber(CellShd.Unifill.transparent)) if(isRealNumber(CellShd.Unifill.transparent))
{ {
Alpha = 255 - CellShd.Unifill.transparent; Alpha = CellShd.Unifill.transparent;
} }
else else
{ {
Alpha = 255; Alpha = 255;
} }
pGraphics.b_color1( RGBA.r, RGBA.g, RGBA.b, Alpha ); pGraphics.b_color1( RGBA.R, RGBA.G, RGBA.B, Alpha );
pGraphics.TableRect(Math.min(X_cell_start, X_cell_end), Math.min(Y, Y + RealHeight), Math.abs(X_cell_end - X_cell_start), Math.abs(RealHeight)); pGraphics.TableRect(Math.min(X_cell_start, X_cell_end), Math.min(Y, Y + RealHeight), Math.abs(X_cell_end - X_cell_start), Math.abs(RealHeight));
} }
else else
......
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