/*
* Geeqie
- * Copyright (C) 2008 - 2009 The Geeqie Team
+ * Copyright (C) 2008 - 2012 The Geeqie Team
*
* Author: Vladimir Nadvornik
* based on a patch by Uwe Ohse
}
}
histmap->y = end_line;
- return end_line >= h;
+ return end_line >= h;
}
const HistMap *histmap_get(FileData *fd)
for (j = 0; j < num_chan; j++)
{
gint chanmax;
- if (histogram->histogram_channel == HCHAN_RGB)
+ if (histogram->histogram_channel == HCHAN_RGB)
{
chanmax = HCHAN_R;
if (v[HCHAN_G] > v[HCHAN_R]) chanmax = HCHAN_G;
void histogram_notify_cb(FileData *fd, NotifyType type, gpointer data)
{
- if ((type & (NOTIFY_CHANGE | NOTIFY_REREAD)) && fd->histmap)
+ if ((type & NOTIFY_REREAD) && fd->histmap)
{
DEBUG_1("Notify histogram: %s %04x", fd->path, type);
histmap_free(fd->histmap);