refresh frame fix, dblclk proxy viewer fix, vicon refresh fix for awdw resize, fix...
[goodguy/history.git] / cinelerra-5.1 / guicast / bctheme.C
index b79988c0eaad6f62ed92f0d6f818a9040796a9d2..c206f258af27131ab8e8dd0a3e1d12a3812444ef 100644 (file)
@@ -106,6 +106,8 @@ VFrame** BC_Theme::new_image_set_images(const char *title, int total, ...)
        BC_ThemeSet *existing_image_set = title[0] ? get_image_set_object(title) : 0;
        if( existing_image_set ) {
                image_sets.remove_object(existing_image_set);
+               last_image_set = 0;
+               last_image_data = 0;
        }
 
        BC_ThemeSet *result = new BC_ThemeSet(total, 0, title);
@@ -471,7 +473,7 @@ int BC_Theme::images_cmpr(const void *ap, const void *bp)
 unsigned char* BC_Theme::get_image_data(const char *name, int log_errs)
 {
 // Image is the same as the last one
-       if( last_image_data && !strcasecmp(last_image_data->name, name) )
+       if( last_image_data && !strcmp(last_image_data->name, name) )
                return last_image_data->data;
 
 // look forwards thru data sets for name
@@ -484,7 +486,7 @@ unsigned char* BC_Theme::get_image_data(const char *name, int log_errs)
                while( r-l > 1 ) {
                        m = (l + r) / 2;
                        BC_ImageData *image_data = images[m];
-                       if( !(v=strcasecmp(name, image_data->name)) ) {
+                       if( !(v=strcmp(name, image_data->name)) ) {
                                image_data->used = 1;
                                last_image_data = image_data;
                                return image_data->data;