No error logging when copy of path fails. This is normal in cairo 1.4.10

for empty paths.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25507 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2007-10-01 16:02:16 +00:00
parent 1ce0bd5175
commit c8a731fd97
2 changed files with 18 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-10-01 Fred Kiefer <FredKiefer@gmx.de>
* Source/cairo/CairoGState.m (-copyWithZone:): No error logging
when copy of path fails. This is normal in cairo 1.4.10 for empty
paths.
2007-09-12 Fred Kiefer <FredKiefer@gmx.de>
* Headers/cairo/CairoGState.h,

View file

@ -115,12 +115,23 @@
cairo_get_matrix(_ct, &local_matrix);
cairo_set_matrix(copy->_ct, &local_matrix);
status = cairo_status(copy->_ct);
if (status != CAIRO_STATUS_SUCCESS)
{
NSLog(@"Cairo status %s in set matrix", cairo_status_to_string(status));
}
cpath = cairo_copy_path(_ct);
status = cpath->status;
if (status != CAIRO_STATUS_SUCCESS)
{
NSLog(@"Cairo status %s in copy path", cairo_status_to_string(status));
/*
Due to an interesting programming concept in cairo this does not
mean that an error has occured. It may as well just be that the
old path had no elements.
At least in cairo 1.4.10 (See file cairo-path.c, line 379).
*/
// NSLog(@"Cairo status %s in copy path", cairo_status_to_string(status));
}
else
{