1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-26 03:18:22 +01:00

fix: incorrect line rendering

This commit is contained in:
Dany LE 2022-08-13 01:47:15 +02:00
parent f3ef0c1aa0
commit 766ae23f8e

View File

@ -85,9 +85,7 @@ DiyaLine >> inner: aPoint [
DiyaLine >> process [
|extent|
bbox := (Rectangle origin: from corner: to ).
bbox origin = translation ifFalse:[self position: bbox origin].
from := from - bbox origin.
to := to - bbox origin.
self position: bbox origin.
extent := bbox extent.
bbox := (Rectangle origin: 0@0 corner: extent ).