[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/graphics/okular/mobipocket
From: Jakub Stachowski <qbast () go2 ! pl>
Date: 2008-12-31 23:35:32
Message-ID: 1230766532.717876.18639.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 903974 by qbast:
Do not try to extract text from DRM-ed files
M +4 -2 mobiendanalyzer.cpp
--- trunk/playground/graphics/okular/mobipocket/mobiendanalyzer.cpp #903973:903974
@@ -91,8 +91,10 @@
case Mobipocket::Document::Copyright: \
as.addValue(factory->copyrightField, it.value().toUtf8().data() ); break; }
}
- QByteArray text=doc.text(20480).toUtf8();
- as.addText(text.data(), text.size());
+ if (!doc.hasDRM()) {
+ QByteArray text=doc.text(20480).toUtf8();
+ as.addText(text.data(), text.size());
+ }
return 0;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic