Skip to content

Commit

Permalink
Use new createMessageBox interface only under LibreOffice 4.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
simonster committed Mar 11, 2014
1 parent 9e09a9c commit 12380e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/source/org/zotero/integration/ooo/comp/Document.java
Expand Up @@ -145,7 +145,7 @@ public int displayAlert(String text, int icon, int buttons) {
int majorVersion = Integer.parseInt(Application.ooVersion.substring(0, 1));
if(majorVersion > 4 ||
(majorVersion == 4 && (Application.ooName.equals("OpenOffice") ||
Integer.parseInt(Application.ooVersion.substring(2, 3)) >= 1))) {
Integer.parseInt(Application.ooVersion.substring(2, 3)) >= 2))) {
// CreateMessageBox method differs in AOO 4+ and LO 4.1+, so get it using reflection
try {
Class MessageBoxTypeClass = (Class<Enum>) Class.forName("com.sun.star.awt.MessageBoxType");
Expand Down
Binary file modified install/Zotero_OpenOffice_Integration.oxt
Binary file not shown.

0 comments on commit 12380e0

Please sign in to comment.