File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -435,13 +435,13 @@ def anchored_position(self):
435
435
return (
436
436
int (
437
437
self .x
438
- + (self ._boundingbox [0 ] * self ._scale )
439
- + round (self ._anchor_point [0 ] * self ._boundingbox [2 ] * self ._scale )
438
+ + (self ._boundingbox [0 ] * self .scale )
439
+ + round (self ._anchor_point [0 ] * self ._boundingbox [2 ] * self .scale )
440
440
),
441
441
int (
442
442
self .y
443
- + (self ._boundingbox [1 ] * self ._scale )
444
- + round (self ._anchor_point [1 ] * self ._boundingbox [3 ] * self ._scale )
443
+ + (self ._boundingbox [1 ] * self .scale )
444
+ + round (self ._anchor_point [1 ] * self ._boundingbox [3 ] * self .scale )
445
445
),
446
446
)
447
447
@@ -451,11 +451,11 @@ def anchored_position(self, new_position):
451
451
return # Note: anchor_point must be set before setting anchored_position
452
452
self .x = int (
453
453
new_position [0 ]
454
- - (self ._boundingbox [0 ] * self ._scale )
455
- - round (self ._anchor_point [0 ] * (self ._boundingbox [2 ] * self ._scale ))
454
+ - (self ._boundingbox [0 ] * self .scale )
455
+ - round (self ._anchor_point [0 ] * (self ._boundingbox [2 ] * self .scale ))
456
456
)
457
457
self .y = int (
458
458
new_position [1 ]
459
- - (self ._boundingbox [1 ] * self ._scale )
460
- - round (self ._anchor_point [1 ] * self ._boundingbox [3 ] * self ._scale )
459
+ - (self ._boundingbox [1 ] * self .scale )
460
+ - round (self ._anchor_point [1 ] * self ._boundingbox [3 ] * self .scale )
461
461
)
You can’t perform that action at this time.
0 commit comments