I have two line fragments in a line and the first one contains an inline image. In the willSetLineFragment method of my typesetter subclass, while processing the second line fragment, I need to go back and fix the baseline offset in the first line fragment. To do that I call setLineFragment of the typesetter. As soon as I do that, the inline image in that fragment no longer gets drawn. Instead, a small square appears in its place. The characters are drawn fine. If I don't call setLineFragment to adjust the first line fragment, while in the willSetLineFragment method that is processing the second fragment, it is fine.

Since I absolutely need to call setLineFragment from inside willSetLineFragment in order to re-adjust the baseline for the first line fragment, what else do I need to do to so that the inline image in the first line fragment still gets drawn.

Thanks!
Manoj Patwardhan
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to