X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=inline;f=cinelerra-5.1%2Fplugins%2Fhistogram_bezier%2Fbistogram.C;fp=cinelerra-5.1%2Fplugins%2Fhistogram_bezier%2Fbistogram.C;h=53ebceeb3f57b6a07adf338505f839e37acd0dce;hb=a91176d7510310919776d0250d5708bb244d440b;hp=16a27cb9cfe2d6862c8159866da2f6f38de2f8ab;hpb=c8c97de4bed1b06c686fe7155e41ecb85d633b34;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..53ebceeb 100644 --- a/cinelerra-5.1/plugins/histogram_bezier/bistogram.C +++ b/cinelerra-5.1/plugins/histogram_bezier/bistogram.C @@ -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(); }