Undo'ing causes gradient editor to display junk in preview

Bug #168904 reported by Colin1000
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

Version: Inkscape 0.46dev+devel, built Sep 20 2007
         for Win32

If you create a gradient and then open the gradient editor to edit it, and
then "undo" to before the gradient existed, the gradient preview in the
gradient editor dialog box displays a junk image.

Steps to reproduce:

1. Open a new document.
2. Draw a shape like a square
3. Go to Fill/Stroke
4. Select either gradient option for fill
5. Click on "Edit" to edit the gradient.
   The Gradient Editor dialog will open.
   A preview of the new gradient is shown along the top
   of the window.
6. Click back in the main window and hit Ctrl-Z to undo.
7. The preview of the gradient will turn into something
   that looks like static.

I understand why the program is doing this - it can't show a preview of a
gradient that no longer exists. I'm more reporting this because it looks
bad and in case it is a bug that leads to the program becoming unstable. It
doesn't seem to do so, but as it redisplays the gradient after the undo and
it seems to be reading junk, I would assume (and I don't know) that the
memory allocated for the gradient gets freed but the preview is still
reading from it. If this is the case then it could break things later, so I
thought I'd report it.

Otherwise I love inkscape. Thank you so much for all of this work.

Colin

Tags: gradient ui undo
nightrow (jb-benoit)
Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
John Cliff (johncliff) wrote :

confirmed in SVN. I know the plan is to kill the dialog, but since that hasnt happened yet this ones still valid.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on WIndows XP, Inkscape bzr rev. 9222.

tags: added: gradient
Revision history for this message
jazzynico (jazzynico) wrote :

Fixed in the trunk with the new gradient tool.

Changed in inkscape:
milestone: none → 0.49
status: Confirmed → Fix Committed
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
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.