Commit 4284c344 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

правка для случая, когда отсутсвует src в картинках(IE)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53981 954022d7-b5bf-4e40-9824-e11837661b57
parent 8d2ad1f8
......@@ -7594,7 +7594,7 @@
//вставляем изображения
for (var im = 0; im < val.addImages.length; im++) {
var src = val.addImages[im].tag.src;
if (src) {
var binary_shape = val.addImages[im].tag.getAttribute("alt");
var sub;
if (typeof binary_shape === "string")
......@@ -7646,13 +7646,12 @@
Drawing.drawingObjects = t.objectRender;
a_drawings.push(Drawing);
//Drawing.addToDrawingObjects();
} else if (0 != src.indexOf("file://")) {
} else if (src && 0 != src.indexOf("file://")) {
var drawing = CreateImageDrawingObject(src, { cell: val.addImages[im].curCell, width: val.addImages[im].tag.width, height: val.addImages[im].tag.height }, t.objectRender);
if(drawing && drawing.graphicObject)
a_drawings.push(drawing.graphicObject);
}
}
}
t.objectRender.objectLocker.reset();
......
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