diff --git a/gl2ps.c b/gl2ps.c index 4a06c31a63e3d03fb974d8b0760530bc1cf8f444..067691d0130f815732593452c504504837ac48e5 100644 --- a/gl2ps.c +++ b/gl2ps.c @@ -1,4 +1,4 @@ -/* $Id: gl2ps.c,v 1.211 2005-06-18 18:06:20 geuzaine Exp $ */ +/* $Id: gl2ps.c,v 1.212 2005-06-20 17:32:24 geuzaine Exp $ */ /* * GL2PS, an OpenGL to PostScript Printing Library * Copyright (C) 1999-2005 Christophe Geuzaine <geuz@geuz.org> @@ -3995,7 +3995,7 @@ static int gl2psPrintPDFShaderMask(int obj, int childobj) (int)gl2ps->viewport[2], (int)gl2ps->viewport[3]); len = (childobj>0) - ? strlen("/TrSh sh\n") + (int)log10(childobj)+1 + ? strlen("/TrSh sh\n") + (int)log10((double)childobj)+1 : strlen("/TrSh0 sh\n"); offs += fprintf(gl2ps->stream,