mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
XHTMLImageFinder used in OEBBookReader
This commit is contained in:
parent
67f2922418
commit
5e68f8602f
14 changed files with 28 additions and 25 deletions
|
@ -299,7 +299,7 @@ JNIEXPORT void JNICALL Java_org_geometerplus_fbreader_formats_NativeFormatPlugin
|
|||
|
||||
const std::string path = AndroidUtil::Method_ZLFile_getPath->callForCppString(file);
|
||||
|
||||
shared_ptr<ZLImage> image = plugin->coverImage(ZLFile(path));
|
||||
shared_ptr<const ZLImage> image = plugin->coverImage(ZLFile(path));
|
||||
if (!image.isNull()) {
|
||||
jobject javaImage = AndroidUtil::createJavaImage(env, (const ZLFileImage&)*image);
|
||||
env->SetObjectArrayElement(box, 0, javaImage);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue