1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-27 11:58:21 +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 [ DiyaLine >> process [
|extent| |extent|
bbox := (Rectangle origin: from corner: to ). bbox := (Rectangle origin: from corner: to ).
bbox origin = translation ifFalse:[self position: bbox origin]. self position: bbox origin.
from := from - bbox origin.
to := to - bbox origin.
extent := bbox extent. extent := bbox extent.
bbox := (Rectangle origin: 0@0 corner: extent ). bbox := (Rectangle origin: 0@0 corner: extent ).