comparison src/histogram.c @ 1750:067f08c0a9f8

preserve histmap on NOTIFY_CHANGE
author nadvornik
date Sun, 13 Sep 2009 12:33:11 +0000
parents 9a081164e6e3
children 956aab097ea7
comparison
equal deleted inserted replaced
1749:f549702f7b41 1750:067f08c0a9f8
378 return TRUE; 378 return TRUE;
379 } 379 }
380 380
381 void histogram_notify_cb(FileData *fd, NotifyType type, gpointer data) 381 void histogram_notify_cb(FileData *fd, NotifyType type, gpointer data)
382 { 382 {
383 if ((type & (NOTIFY_CHANGE | NOTIFY_REREAD)) && fd->histmap) 383 if ((type & NOTIFY_REREAD) && fd->histmap)
384 { 384 {
385 DEBUG_1("Notify histogram: %s %04x", fd->path, type); 385 DEBUG_1("Notify histogram: %s %04x", fd->path, type);
386 histmap_free(fd->histmap); 386 histmap_free(fd->histmap);
387 fd->histmap = NULL; 387 fd->histmap = NULL;
388 } 388 }