[Libreoffice-commits] core.git: desktop/source

Chamal e12346 at ce.pdn.ac.lk
Wed Nov 16 06:16:43 UTC 2016


 desktop/source/lib/lokandroid.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 121a202076f0ada98e5e3697e4e15a48b477523e
Author: Chamal <e12346 at ce.pdn.ac.lk>
Date:   Fri Oct 14 07:59:17 2016 +0530

    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 at documentfoundation.org>
    Tested-by: jan iversen <jani at documentfoundation.org>

diff --git a/desktop/source/lib/lokandroid.cxx b/desktop/source/lib/lokandroid.cxx
index c9181a9..f3ac258 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);


More information about the Libreoffice-commits mailing list