summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorChamal <e12346@ce.pdn.ac.lk>2016-10-14 07:59:17 +0530
committerjan iversen <jani@documentfoundation.org>2016-11-16 06:16:17 +0000
commit121a202076f0ada98e5e3697e4e15a48b477523e (patch)
treedb879c247f8e661418a2303d2ea305d47036a1a8 /desktop
parentc3f99532022abb0d37b23cfffb9d52455420416b (diff)
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/29804 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/lokandroid.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/source/lib/lokandroid.cxx b/desktop/source/lib/lokandroid.cxx
index c9181a96aae5..f3ac258527cd 100644
--- a/desktop/source/lib/lokandroid.cxx
+++ b/desktop/source/lib/lokandroid.cxx
@@ -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);