Opened 5 years ago

Closed 14 months ago

#14 closed defect (fixed)

Don't reset zoom state when loading if old and new image size is the same.

Reported by: finticemo Owned by: Thomas Bernard
Priority: major Milestone: 2.7
Component: GrafX2 Version: 2.4
Keywords: Cc:


I believe the title is fairly self-explanatory.

I was working on a large set of 32x32 icons and doing a lot of load / save.
Each time I loaded, the zoom display was removed and I had to hit M to bring it up again.
It would be more convenient if GrafX2 preserves the zoom state in the case where the newly loaded image is the same size as the previous image.

Change History (8)

comment:1 Changed 3 years ago by Thomas Bernard

it can even preserve zoom state upon file load what ever the image size is...

comment:2 Changed 2 years ago by PulkoMandy

Milestone: 2.52.6

comment:3 Changed 2 years ago by PulkoMandy

Owner: changed from Adrien Destugues to PulkoMandy
Status: newassigned

comment:4 Changed 18 months ago by PulkoMandy

Milestone: 2.62.7

Move open tickets to 2.7 milestone

comment:5 Changed 14 months ago by Thomas Bernard

Owner: changed from PulkoMandy to Thomas Bernard

here is the code that reset the magnifier mode after loading :
I don't know why it is done that way.
it is probably to avoid redrawing bugs...

comment:6 Changed 14 months ago by PulkoMandy

Yes, various things can go bad if the magnifier is kept when reloading a picture:

  • The magnifier position (x,y in the image) has to be clipped to the new picture size (there can be problems if the magnified picture does not fill the display completely to the right)
  • The separator bar position needs to be recomputed too (the magnified area must always be completely visible in the 1:1 side as well)

Possibly some other state is also reset elsewhere.

comment:8 Changed 14 months ago by Thomas Bernard

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.