Skip to content

Commit

Permalink
fix FS#1993 - Draw > Insert Bitmap: relative zero point not set
Browse files Browse the repository at this point in the history
  • Loading branch information
qcad committed Nov 11, 2019
1 parent 910576b commit 5406cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Draw/Image/Image.js
Expand Up @@ -199,14 +199,14 @@ Image.prototype.setState = function(state) {

Image.prototype.pickCoordinate = function(event, preview) {
this.pos = event.getModelPosition();
this.getDocumentInterface().setRelativeZero(this.pos);

var op = this.getOperation();
if (!isNull(op)) {
if (preview) {
this.updatePreview();
}
else {
this.getDocumentInterface().setRelativeZero(this.pos);
this.applyOperation();
}
}
Expand Down

0 comments on commit 5406cb6

Please sign in to comment.