STR#3012 Fix: cairo_make_current(void*, int, int) would not release previously allocated cc in certain conditions, fixed the extra cc non null test condition erronously formulated in previous submission.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10027 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Fabien Costantini 2013-12-11 06:33:14 +00:00
parent 32aba335c6
commit 8edcf8f29f
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ cairo_t * Fl::cairo_make_current(void *gc) {
}
if (gc==Fl::cairo_state_.gc() &&
fl_window== (Window) Fl::cairo_state_.window() &&
cairo_state_.cc()==0)
cairo_state_.cc()!=0)
return Fl::cairo_cc();
cairo_state_.gc(fl_gc); // keep track for next time
cairo_surface_t * s = cairo_create_surface(gc, W, H);