Commit 21ef948d authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix bug with images

parent ac95dd7e
...@@ -1496,6 +1496,7 @@ function DrawingObjects() { ...@@ -1496,6 +1496,7 @@ function DrawingObjects() {
if ( _t.isGraphicObject() && _t.graphicObject.bounds) { if ( _t.isGraphicObject() && _t.graphicObject.bounds) {
var bounds = _t.graphicObject.bounds; var bounds = _t.graphicObject.bounds;
...@@ -3192,14 +3193,28 @@ function DrawingObjects() { ...@@ -3192,14 +3193,28 @@ function DrawingObjects() {
for (i = 0; i < aObjects.length; i++) { for (i = 0; i < aObjects.length; i++) {
drawingObject = aObjects[i]; drawingObject = aObjects[i];
if (drawingObject.from.row >= target.row) { if (drawingObject.from.row >= target.row) {
drawingObject.checkBoundsFromTo(); if(drawingObject.graphicObject){
if(drawingObject.graphicObject.recalculateTransform){
drawingObject.graphicObject.recalculateTransform();
}
if(drawingObject.graphicObject.recalculateBounds){
drawingObject.graphicObject.recalculateBounds();
}
}
} }
} }
} else { } else {
for (i = 0; i < aObjects.length; i++) { for (i = 0; i < aObjects.length; i++) {
drawingObject = aObjects[i]; drawingObject = aObjects[i];
if (drawingObject.from.col >= target.col) { if (drawingObject.from.col >= target.col) {
drawingObject.checkBoundsFromTo(); if(drawingObject.graphicObject){
if(drawingObject.graphicObject.recalculateTransform){
drawingObject.graphicObject.recalculateTransform();
}
if(drawingObject.graphicObject.recalculateBounds){
drawingObject.graphicObject.recalculateBounds();
}
}
} }
} }
} }
......
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