mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 07:58:02 +02:00
Fix misplaced goto.
This commit is contained in:
parent
7c4a2b1d6e
commit
9ebf15e960
2 changed files with 8 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2005-05-13 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Fix
|
||||
misplaced goto.
|
||||
|
||||
2005-05-12 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* src/cairoint.h:
|
||||
|
|
|
|||
|
|
@ -945,9 +945,10 @@ _cairo_xlib_surface_create_internal (Display *dpy,
|
|||
for (j = 0; j < screen->ndepths; j++) {
|
||||
Depth *depth = &screen->depths[j];
|
||||
for (k = 0; k < depth->nvisuals; k++) {
|
||||
if (&depth->visuals[k] == visual)
|
||||
if (&depth->visuals[k] == visual) {
|
||||
surface->depth = depth->depth;
|
||||
goto found;
|
||||
goto found;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue