Skip to content

Commit

Permalink
Fixes #16
Browse files Browse the repository at this point in the history
Fixed issue with transform in drawing objects
  • Loading branch information
TomByrne committed Dec 28, 2016
1 parent 1808f08 commit 75e6586
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions html/ExtensionContent/Extensible/SVG.jsfl
Original file line number Diff line number Diff line change
Expand Up @@ -4218,19 +4218,19 @@



if(shape.isGroup || shape.isRectangleObject || shape.isOvalObject || shape.isDrawingObject){
descendantMatrix = matrix;
matrix = new ext.Matrix();
if(this._appVersion<12){
// an issue before CS6 resulted in groups having incorrect transforms
}else{
descendantMatrix = new ext.Matrix(fl.Math.concatMatrix(descendantMatrix, settings.matrix));
}
if(shape.isGroup || shape.isRectangleObject || shape.isOvalObject){
// descendantMatrix = matrix;
// matrix = new ext.Matrix();
// if(this._appVersion<12){
// // an issue before CS6 resulted in groups having incorrect transforms
// }else{
// descendantMatrix = new ext.Matrix(fl.Math.concatMatrix(descendantMatrix, settings.matrix));
// }
}else{
matrix.tx = 0;//shape.left;
matrix.ty = 0;//shape.top;
matrix = fl.Math.concatMatrix(matrix, settings.matrix);
}
matrix = fl.Math.concatMatrix(matrix, settings.matrix);



Expand Down

0 comments on commit 75e6586

Please sign in to comment.