mirror of https://github.com/GNOME/gimp.git
Added an assertion check in tile_manager.c to catch inappropriate sharing
attempts. --sg
This commit is contained in:
parent
81a6cba140
commit
42185929c3
|
@ -1,3 +1,7 @@
|
|||
Sat Aug 1 20:50:47 1998 Scott Goehring <scott@poverty.bloomington.in.us>
|
||||
|
||||
* app/tile_manager.c: Added an assertion check in tile_manager_map
|
||||
|
||||
Fri Jul 31 15:41:30 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* applied gimp-alt-980729-0 and gimp-alt-980730-0, adds brush
|
||||
|
|
|
@ -596,6 +596,11 @@ tile_manager_map (TileManager *tm,
|
|||
/* printf(")");fflush(stdout);*/
|
||||
|
||||
TILE_MUTEX_LOCK (*tile_ptr);
|
||||
if ((*tile_ptr)->ewidth != srctile->ewidth ||
|
||||
(*tile_ptr)->eheight != srctile->eheight ||
|
||||
(*tile_ptr)->bpp != srctile->bpp) {
|
||||
g_warning ("tile_manager_map: nonconformant map (%p -> %p)",
|
||||
srctile, *tile_ptr);
|
||||
tile_detach (*tile_ptr, tm, tile_num);
|
||||
|
||||
/* printf(">");fflush(stdout);*/
|
||||
|
|
|
@ -596,6 +596,11 @@ tile_manager_map (TileManager *tm,
|
|||
/* printf(")");fflush(stdout);*/
|
||||
|
||||
TILE_MUTEX_LOCK (*tile_ptr);
|
||||
if ((*tile_ptr)->ewidth != srctile->ewidth ||
|
||||
(*tile_ptr)->eheight != srctile->eheight ||
|
||||
(*tile_ptr)->bpp != srctile->bpp) {
|
||||
g_warning ("tile_manager_map: nonconformant map (%p -> %p)",
|
||||
srctile, *tile_ptr);
|
||||
tile_detach (*tile_ptr, tm, tile_num);
|
||||
|
||||
/* printf(">");fflush(stdout);*/
|
||||
|
|
Loading…
Reference in New Issue