After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 301033 - Layer previews do not update if colormap is changed
Layer previews do not update if colormap is changed
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.2.x
Other All
: Normal minor
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-04-18 07:17 UTC by Bill Kendrick
Modified: 2008-01-15 12:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bill Kendrick 2005-04-18 07:17:53 UTC
Please describe the problem:
In indexed color images, if the color map is changed, previews (in the 
toolbar, in the window's titlebar, the preview used in the Recent Documents 
history, and even in the Edit Colormap Entry window) do not get updated. 
 
Another edit (e.g., paint with the paintbrush) must be done for these previews 
to become updated.  (Fortunately, the file's "Saved" status is updated, so a 
"*" appears in the window's title, and File->Save / Ctrl+S work properly to 
save the image.) 
 

Steps to reproduce:
1. Create or open an image that's in Indexed color mode  
2. Select "Colormap" from the Dialogs menu  
3. Change one of the colors used in the picture (either by entering a new hex  
code in the colormap dialog, or double-clicking a color, editing it in the  
Edit Colormap Entry window that appears, and dismissing the Edit Colormap  
Entry window with its "OK" button) 
 

Actual results:
Notice the colors change in the image itself, but not in the thumbnail  
preview of the image used: (1) as the image's window/titlebar icon, (2) in the  
Display Navigation display, (3) in the Undo History previews, (4) in the 
navigation pop-up's thumbnail (accessible via the four-arrow button at the 
lower right of the window). 

Expected results:
The previews/thumbnails should change when the image's contents change (even 
if it's simply the color palette entries changing, not the actual pixels). 

Does this happen every time?
Yes 

Other information:
Comment 1 Sven Neumann 2005-04-18 16:11:39 UTC
Fixed in both branches:

2005-04-18  Sven Neumann  <sven@gimp.org>

        * app/core/gimpimage.c (gimp_image_real_colormap_changed):
        invalidate layer previews when the colormap changes. Fixes
        bug #301033.