Kaydet (Commit) 68ee5d59 authored tarafından Mert Tümer's avatar Mert Tümer Kaydeden (comit) Thorsten Behrens

tdf#116842 fix crashing when adding slides or spreadsheets

Change-Id: I957133e468fe43edd0ed1d76cdd180f20d6a86ac
Signed-off-by: 's avatarMert Tümer <merttumer7@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/52493Tested-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst a2f6b01f
......@@ -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) {
......
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