poppler/CairoOutputDev.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 87c48fdc175be4d852b953778f915ea93cd50194 Author: Adrian Johnson <[email protected]> Date: Wed Aug 24 19:53:48 2011 +0930 cairo: fix unique id mime data The unique id string was copied before the object number was appended resulting in all images in pdf output being the same. diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc index 968788e..cec2039 100644 --- a/poppler/CairoOutputDev.cc +++ b/poppler/CairoOutputDev.cc @@ -2541,9 +2541,8 @@ void CairoOutputDev::setMimeData(Stream *str, Object *ref, cairo_surface_t *imag if (ref && ref->isRef()) { Ref imgRef = ref->getRef(); GooString *surfaceId = new GooString("poppler-surface-"); - char *idBuffer = copyString(surfaceId->getCString()); - surfaceId->appendf("{0:d}-{1:d}", imgRef.gen, imgRef.num); + char *idBuffer = copyString(surfaceId->getCString()); st = cairo_surface_set_mime_data (image, CAIRO_MIME_TYPE_UNIQUE_ID, (const unsigned char *)idBuffer, surfaceId->getLength(), _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
