X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Fcwindowgui.C;h=470d0b02850042940c6a2e35e5cbe697ae394017;hb=425f9eab2f37d52e16e7ebdcd4b78f6de7ed68e7;hp=a0762595f48499208bb4ea030d4c922d3bb87cfb;hpb=73e5d54a5068f6a355158691a9c8849103f89564;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/cwindowgui.C b/cinelerra-5.0/cinelerra/cwindowgui.C index a0762595..470d0b02 100644 --- a/cinelerra-5.0/cinelerra/cwindowgui.C +++ b/cinelerra-5.0/cinelerra/cwindowgui.C @@ -902,7 +902,7 @@ void CWindowCanvas::draw_refresh(int flush) if(get_canvas() && !get_canvas()->get_video_on()) { - if(refresh_frame) + if(refresh_frame && refresh_frame->get_w()>0 && refresh_frame->get_h()>0) { float in_x1, in_y1, in_x2, in_y2; float out_x1, out_y1, out_x2, out_y2; @@ -2118,7 +2118,7 @@ int CWindowCanvas::do_eyedrop(int &rerender, int button_press, int draw) - if(refresh_frame) + if(refresh_frame && refresh_frame->get_w()>0 && refresh_frame->get_h()>0) { if(draw) @@ -2174,7 +2174,7 @@ int CWindowCanvas::do_eyedrop(int &rerender, int button_press, int draw) // Get color out of frame. // Doesn't work during playback because that bypasses the refresh frame. - if(refresh_frame) + if(refresh_frame && refresh_frame->get_w()>0 && refresh_frame->get_h()>0) { float cursor_x = get_cursor_x(); float cursor_y = get_cursor_y();