[poppler] Branch 'cpp-frontend' - cpp/poppler-document.cpp
Pino Toscano
pino at kemper.freedesktop.org
Mon Dec 14 15:37:41 PST 2009
cpp/poppler-document.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 16c946e7658b0e9cff701ce1d6bbf7d3828cbe08
Author: Pino Toscano <pino at kde.org>
Date: Tue Dec 15 00:35:25 2009 +0100
[cpp] fix the reference to the vector data
diff --git a/cpp/poppler-document.cpp b/cpp/poppler-document.cpp
index 0ff526f..ab3939b 100644
--- a/cpp/poppler-document.cpp
+++ b/cpp/poppler-document.cpp
@@ -58,7 +58,7 @@ document_private::document_private(byte_array *file_data,
Object obj;
obj.initNull();
file_data->swap(doc_data);
- MemStream *memstr = new MemStream(doc_data.data(), 0, doc_data.size(), &obj);
+ MemStream *memstr = new MemStream(&doc_data[0], 0, doc_data.size(), &obj);
GooString goo_owner_password(owner_password.c_str());
GooString goo_user_password(user_password.c_str());
doc = new PDFDoc(memstr, &goo_owner_password, &goo_user_password);
More information about the poppler
mailing list