Skip to content

Commit

Permalink
fixed histogram drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Feb 15, 2009
1 parent 63da7df commit a138582
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/image-overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,10 @@ static gint image_osd_update_cb(gpointer data)

if (osd->show & OSD_SHOW_INFO)
{
if (osd->changed_states & IMAGE_STATE_IMAGE)
/* redraw when the image was changed,
with histogram we have to redraw also when loading is finished */
if (osd->changed_states & IMAGE_STATE_IMAGE ||
(osd->changed_states & IMAGE_STATE_LOADING && osd->show & OSD_SHOW_HISTOGRAM))
{
GdkPixbuf *pixbuf;

Expand Down

0 comments on commit a138582

Please sign in to comment.