Commit 1fc3d270 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

minor

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50171 954022d7-b5bf-4e40-9824-e11837661b57
parent 7a4f5a7f
......@@ -2354,7 +2354,7 @@ function DrawingObjects() {
var trackOverlay = null;
var autoShapeTrack = null;
var scrollOffset = { x: 0, y: 0, x0: 0, y0: 0 };
var scrollOffset = { x: 0, y: 0 };
var aObjects = null;
var aBoundsCheckers = [];
......@@ -2870,14 +2870,7 @@ function DrawingObjects() {
if ( image != null ) {
var x = pxToMm(drawingObject.getVisibleLeftOffset());
var y = pxToMm(drawingObject.getVisibleTopOffset());
var w = pxToMm(drawingObject.getWidthFromTo());
var h = pxToMm(drawingObject.getHeightFromTo());
// CImage
drawingObject.graphicObject = new CImageShape(drawingObject, _this);
drawingObject.graphicObject.initDefault( x, y, w, h, image.src );
drawingObject.graphicObject.recalculate();
drawingObject.setGraphicObjectCoords();
drawingObject.graphicObject.draw(shapeCtx);
aObjects.push(drawingObject);
......@@ -4335,8 +4328,6 @@ function DrawingObjects() {
scrollOffset.x -= x_px;
scrollOffset.y -= y_px;
scrollOffset.x0 -= x_px;
scrollOffset.y0 -= y_px;
shapeCtx.m_oCoordTransform.tx = scrollOffset.x;
shapeCtx.m_oCoordTransform.ty = scrollOffset.y;
......
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