Canvas over clipped
Bug #1698582 reported by
hilaire
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dr. Geo |
Won't Fix
|
Critical
|
Unassigned |
Bug Description
Canvas is overclipped in the DrGeo window.
It look like there is a shift in the canvas coordinate, origin locked to top left screen.
tags: | added: user-interface |
Changed in drgeo: | |
status: | New → In Progress |
To post a comment you must log in.
This seems to be a bug in AthensCairoCanvas.
I made quite some changes for Pharo5 to make athens work better with drawing
ordinary Morphs and UI-Elements build from Morphs.
It was a pretty tough time especially for transformations and clipping.
I thing I made an error in as>>#clipRectan gle
AthensCairoCanv
^ currentClipRect ifNil: [ 0 @ 0 extent: self surface extent ]
if the current clipRect is nil, I can not always create a default clip rect from the
surface extent, if the surface is actually transformed.
So, we have to make sure to take any (non-nil) path transform into account:
^ currentClipRect
ifNil: [ pathTransform
ifNotNil: [ (pathTransform inverted transform: 0 @ 0) extent: self surface extent ]
ifNil: (0 @ 0 extent: self surface extent) ]
As the current release version and development process for Athens is pretty unclear
(pharo in-image and athens-repository again diverge, maybe we should fix this with a method overwrite from drgeo.