File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ def anchored_position(self):
385
385
if self ._anchor_point is None :
386
386
return None
387
387
return (
388
- int (self .x + (self ._anchor_point [0 ] * self ._boundingbox [2 ] * self ._scale )),
388
+ int (self .x + round (self ._anchor_point [0 ] * self ._boundingbox [2 ] * self ._scale )),
389
389
int (
390
390
self .y
391
391
+ (self ._anchor_point [1 ] * self ._boundingbox [3 ] * self ._scale )
@@ -399,7 +399,7 @@ def anchored_position(self, new_position):
399
399
return # Note: anchor_point must be set before setting anchored_position
400
400
new_x = int (
401
401
new_position [0 ]
402
- - self ._anchor_point [0 ] * (self ._boundingbox [2 ] * self ._scale )
402
+ - round ( self ._anchor_point [0 ] * (self ._boundingbox [2 ] * self ._scale ) )
403
403
)
404
404
new_y = int (
405
405
new_position [1 ]
You can’t perform that action at this time.
0 commit comments