Canvas over clipped

Bug #1698582 reported by hilaire on 2017-06-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dr. Geo II

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.

hilaire (hilaire-fernandes) wrote :
Changed in drgeo:
milestone: none → 17.09
importance: Undecided → High
importance: High → Critical
tags: added: user-interface
Nicolai Hess (nicolaihess) wrote :

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
 ^ 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.

hilaire (hilaire-fernandes) wrote :

Yes, it will be nice

Changed in drgeo:
status: New → In Progress
hilaire (hilaire-fernandes) wrote :

It is fixed in upstream Pharo 7.

Changed in drgeo:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers