Merge pull request #1535 from sasensi/Fix_selected_position_is_wrongly_placed_when_item_is_in_a_group_with_matrix_not_applied

Fix: selected position is wrongly placed when item is in a group with matrix not applied
This commit is contained in:
Jürg Lehni 2018-10-03 10:16:59 +02:00 committed by GitHub
commit f032dcbf06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4413,7 +4413,7 @@ new function() { // Injection scope for hit-test functions shared with project
if (itemSelected)
this._drawSelected(ctx, mx, selectionItems);
if (positionSelected) {
var point = this.getPosition(true),
var point = mx._transformPoint(this.getPosition(true)),
x = point.x,
y = point.y;
ctx.beginPath();