Kaydet (Commit) 121a2020 authored tarafından Chamal's avatar Chamal Kaydeden (comit) jan iversen

tdf#92346 - Copy functionality in the viewer

Reference class added to
desktop/source/lib/lokandroid.cxx
for Java_org_libreoffice_kit_Document_getTextSelection()

Change-Id: I211d5709df39fd9fafdab9232af760613f6b86c0
Reviewed-on: https://gerrit.libreoffice.org/29804Reviewed-by: 's avatarjan iversen <jani@documentfoundation.org>
Tested-by: 's avatarjan iversen <jani@documentfoundation.org>
üst c3f99532
......@@ -321,7 +321,8 @@ extern "C" SAL_JNI_EXPORT jstring JNICALL Java_org_libreoffice_kit_Document_getT
const char* pMimeType = pEnv->GetStringUTFChars(mimeType, NULL);
char* pUsedMimeType = 0;
char* pSelection = pDocument->pClass->getTextSelection(pDocument, pMimeType, &pUsedMimeType);
LibreOfficeKitClass* pcls = pDocument->pClass;
char* pSelection = pcls->getTextSelection(pDocument, pMimeType, &pUsedMimeType);
free(pUsedMimeType);
pEnv->ReleaseStringUTFChars(mimeType, pMimeType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment