Apparentely the field does nothing, it's probably there for debugging reasons but this is contributed code and I've no idea of the inner workings.
Paulo ----- Original Message ----- From: "M. Niedermair" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, April 25, 2007 9:06 AM Subject: [iText-questions] CFFFont.java > Hi, > > is this code correct? > > [CFFFont.java line 250..] > int nextIndexOffset; > // read the offsets in the next index > // data structure, convert to global > // offsets, and return them. > // Sets the nextIndexOffset. > int[] getIndex(int nextIndexOffset) { > int count, indexOffSize; > > seek(nextIndexOffset); > count = getCard16(); > int[] offsets = new int[count+1]; > > if (count==0) { > offsets[0] = -1; > nextIndexOffset += 2; > return offsets; > } > > There is a field nextIndexOffset and the local variable nextIndexOffset. > Now you set > nextIndexOffset += 2; > and returned. > Would you set the local variable or the field? > > By > Michael ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
