[poppler] qt/poppler-document.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed May 7 09:50:32 PDT 2008
qt/poppler-document.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 1cf5f0fda542efef575a123622637d81b9c42053
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