Skip to content
Snippets Groups Projects
Commit 61a6f5680051 authored by Florent Aide's avatar Florent Aide
Browse files

Merged in fgeorgeanybox/py3o.renderers.juno (pull request #3)


fix ods to pdf conversion

Approved-by: default avatarFabien GEORGE <fgeorge@anybox.fr>
Approved-by: default avatarAlexis de Lattre <alexis@via.ecp.fr>
No related branches found
No related tags found
No related merge requests found
......@@ -94,5 +94,6 @@
protected void refreshIndexes(XComponent document) {
XDocumentIndexesSupplier indexsupplier = (XDocumentIndexesSupplier) UnoRuntime.queryInterface(XDocumentIndexesSupplier.class, document);
XIndexAccess indexaccess = indexsupplier.getDocumentIndexes();
if (indexsupplier != null) {
XIndexAccess indexaccess = indexsupplier.getDocumentIndexes();
......@@ -98,15 +99,16 @@
for (int i = 0; i < indexaccess.getCount(); i++) {
try {
XDocumentIndex index = (XDocumentIndex) UnoRuntime.queryInterface(XDocumentIndex.class, indexaccess.getByIndex(i));
if (index != null) {
index.update();
}
} catch (IndexOutOfBoundsException e) {
e.printStackTrace();
} catch (WrappedTargetException e) {
e.printStackTrace();
}
for (int i = 0; i < indexaccess.getCount(); i++) {
try {
XDocumentIndex index = (XDocumentIndex) UnoRuntime.queryInterface(XDocumentIndex.class, indexaccess.getByIndex(i));
if (index != null) {
index.update();
}
} catch (IndexOutOfBoundsException e) {
e.printStackTrace();
} catch (WrappedTargetException e) {
e.printStackTrace();
}
}
}
}
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment