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() { ...@@ -2354,7 +2354,7 @@ function DrawingObjects() {
var trackOverlay = null; var trackOverlay = null;
var autoShapeTrack = null; var autoShapeTrack = null;
var scrollOffset = { x: 0, y: 0, x0: 0, y0: 0 }; var scrollOffset = { x: 0, y: 0 };
var aObjects = null; var aObjects = null;
var aBoundsCheckers = []; var aBoundsCheckers = [];
...@@ -2869,15 +2869,8 @@ function DrawingObjects() { ...@@ -2869,15 +2869,8 @@ function DrawingObjects() {
var image = api.ImageLoader.LoadImage(aImagesSync[i], 1); // Должна быть в мапе var image = api.ImageLoader.LoadImage(aImagesSync[i], 1); // Должна быть в мапе
if ( image != null ) { 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.recalculate();
drawingObject.graphicObject = new CImageShape(drawingObject, _this);
drawingObject.graphicObject.initDefault( x, y, w, h, image.src );
drawingObject.setGraphicObjectCoords(); drawingObject.setGraphicObjectCoords();
drawingObject.graphicObject.draw(shapeCtx); drawingObject.graphicObject.draw(shapeCtx);
aObjects.push(drawingObject); aObjects.push(drawingObject);
...@@ -4335,8 +4328,6 @@ function DrawingObjects() { ...@@ -4335,8 +4328,6 @@ function DrawingObjects() {
scrollOffset.x -= x_px; scrollOffset.x -= x_px;
scrollOffset.y -= y_px; scrollOffset.y -= y_px;
scrollOffset.x0 -= x_px;
scrollOffset.y0 -= y_px;
shapeCtx.m_oCoordTransform.tx = scrollOffset.x; shapeCtx.m_oCoordTransform.tx = scrollOffset.x;
shapeCtx.m_oCoordTransform.ty = scrollOffset.y; 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