X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fhistogram_bezier%2Fbistogram.C;h=23688b183a043b1f32c9487659857cc0dd8529be;hb=6bd49ce1b213869a304386c48d43324d7f641248;hp=16a27cb9cfe2d6862c8159866da2f6f38de2f8ab;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/histogram_bezier/bistogram.C b/cinelerra-5.1/plugins/histogram_bezier/bistogram.C index 16a27cb9..23688b18 100644 --- a/cinelerra-5.1/plugins/histogram_bezier/bistogram.C +++ b/cinelerra-5.1/plugins/histogram_bezier/bistogram.C @@ -35,7 +35,7 @@ #include "keyframe.h" #include "language.h" #include "loadbalance.h" -#include "cicolors.h" +#include "bccolors.h" #include "vframe.h" @@ -109,21 +109,16 @@ void HistogramMain::render_gui(void *data) void HistogramMain::update_gui() { - if(thread) - { - thread->window->lock_window("HistogramMain::update_gui"); - int reconfigure = load_configuration(); - if(reconfigure) - { - HistogramWindow *window = (HistogramWindow *)thread->window; - window->update(0); - if(!config.automatic) - { - window->update_input(); - } - } - thread->window->unlock_window(); + if( !thread ) return; + HistogramWindow *window = (HistogramWindow *)thread->window; +// points delete in load_configuration,read_data + window->lock_window("HistogramMain::update_gui"); + if( load_configuration() ) { + window->update(0); + if(!config.automatic) + window->update_input(); } + window->unlock_window(); }