[Libreoffice-commits] core.git: android/source
Mert Tümer
merttumer7 at gmail.com
Fri Apr 13 16:07:25 UTC 2018
android/source/src/java/org/libreoffice/InvalidationHandler.java | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
New commits:
commit 68ee5d5997197be3b087ed9f550da4dac6e21bef
Author: Mert Tümer <merttumer7 at gmail.com>
Date: Fri Apr 6 13:32:25 2018 +0300
tdf#116842 fix crashing when adding slides or spreadsheets
Change-Id: I957133e468fe43edd0ed1d76cdd180f20d6a86ac
Signed-off-by: Mert Tümer <merttumer7 at gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/52493
Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/android/source/src/java/org/libreoffice/InvalidationHandler.java b/android/source/src/java/org/libreoffice/InvalidationHandler.java
index b33f678de90f..92e81febeb7c 100644
--- a/android/source/src/java/org/libreoffice/InvalidationHandler.java
+++ b/android/source/src/java/org/libreoffice/InvalidationHandler.java
@@ -251,10 +251,12 @@ public class InvalidationHandler implements Document.MessageCallback, Office.Mes
}
private void pageSizeChanged(String payload){
- String[] bounds = payload.split(",");
- int pageWidth = Integer.parseInt(bounds[0]);
- int pageHeight = Integer.parseInt(bounds[1].trim());
- LOKitShell.sendEvent(new LOEvent(LOEvent.PAGE_SIZE_CHANGED, pageWidth, pageHeight));
+ if(mContext.getTileProvider().isTextDocument()){
+ String[] bounds = payload.split(",");
+ int pageWidth = Integer.parseInt(bounds[0]);
+ int pageHeight = Integer.parseInt(bounds[1].trim());
+ LOKitShell.sendEvent(new LOEvent(LOEvent.PAGE_SIZE_CHANGED, pageWidth, pageHeight));
+ }
}
private void stateChanged(String payload) {
More information about the Libreoffice-commits
mailing list