Canvas over clipped

Bug #1698582 reported by hilaire
6
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.

Revision history for this message
hilaire (hilaire-fernandes) wrote :
Changed in drgeo:
milestone: none → 17.09
importance: Undecided → High
importance: High → Critical
tags: added: user-interface
Revision history for this message
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
AthensCairoCanvas>>#clipRectangle
 ^ 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.

Revision history for this message
hilaire (hilaire-fernandes) wrote :

Yes, it will be nice

Changed in drgeo:
status: New → In Progress
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.