diff options
| author | Fabien Costantini <fabien@onepost.net> | 2013-12-11 06:33:14 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2013-12-11 06:33:14 +0000 |
| commit | 8edcf8f29fae99f0ba294cd42810f89a99746086 (patch) | |
| tree | 1bd4712855b42a95e00475ff0acdf8707dfb5acb /cairo | |
| parent | 32aba335c601d46561e60d75b1cf91e7ee4215ba (diff) | |
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
Diffstat (limited to 'cairo')
| -rw-r--r-- | cairo/Fl_Cairo.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cairo/Fl_Cairo.cxx b/cairo/Fl_Cairo.cxx index 603483e6f..1cdad67cb 100644 --- a/cairo/Fl_Cairo.cxx +++ b/cairo/Fl_Cairo.cxx @@ -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); |
