mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 07:31:07 +00:00
Warning message when horizontal typesetter enters multiple levels of recursion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38296 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9785d080af
commit
0f6f11e24d
1 changed files with 9 additions and 0 deletions
|
@ -1214,6 +1214,12 @@ restart: ;
|
|||
/* Since we might be the shared system typesetter, we must be
|
||||
reentrant. Thus, if we are already in use and can't lock our lock,
|
||||
we create a new instance and let it handle the call. */
|
||||
|
||||
static NSUInteger RecursionCount = 0;
|
||||
RecursionCount++;
|
||||
if (RecursionCount > 1)
|
||||
NSLog(@"%s:entering %d level recursion", __PRETTY_FUNCTION__, RecursionCount);
|
||||
|
||||
GSHorizontalTypesetter *temp;
|
||||
|
||||
temp = [[object_getClass(self) alloc] init];
|
||||
|
@ -1224,6 +1230,9 @@ restart: ;
|
|||
nextGlyphIndex: nextGlyphIndex
|
||||
numberOfLineFragments: howMany];
|
||||
DESTROY(temp);
|
||||
|
||||
RecursionCount--;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue