[poppler] Branch 'poppler-0.8' - qt/poppler-document.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed May 7 09:49:49 PDT 2008
qt/poppler-document.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit b6a4593243e4d354078bfa48907792cd6bbf0f0c
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed May 7 18:49:28 2008 +0200
[Qt] Fix Document::unlock
diff --git a/qt/poppler-document.cc b/qt/poppler-document.cc
index 597cc0f..a316aa4 100644
--- a/qt/poppler-document.cc
+++ b/qt/poppler-document.cc
@@ -78,8 +78,9 @@ bool Document::unlock(const QCString &password)
{
if (data->locked) {
/* racier then it needs to be */
+ GooString *filename = new GooString(data->doc.getFileName());
GooString *pwd = new GooString(password.data());
- DocumentData *doc2 = new DocumentData(data->doc.getFileName(), pwd);
+ DocumentData *doc2 = new DocumentData(filename, pwd);
delete pwd;
if (!doc2->doc.isOk()) {
delete doc2;
@@ -87,6 +88,7 @@ bool Document::unlock(const QCString &password)
delete data;
data = doc2;
data->locked = false;
+ data->m_fontInfoScanner = new FontInfoScanner(&(data->doc));
}
}
return data->locked;
More information about the poppler
mailing list