diff --git a/analyseWriter.jar b/analyseWriter.jar index e5a3cf5..c5f354e 100644 Binary files a/analyseWriter.jar and b/analyseWriter.jar differ diff --git a/bin/MEPTL/meptl.class b/bin/MEPTL/meptl.class index 905e24e..a9f2875 100644 Binary files a/bin/MEPTL/meptl.class and b/bin/MEPTL/meptl.class differ diff --git a/src/MEPTL/meptl.java b/src/MEPTL/meptl.java index 37504b7..a2c8abe 100644 --- a/src/MEPTL/meptl.java +++ b/src/MEPTL/meptl.java @@ -795,17 +795,19 @@ public class meptl { } } if(usage2=="2") { - if(nodpage.get(j-1).getNodes().get(0)!=null) { - if(nodpage.get(j).getNodes().size()>0) { - if(nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name")!=null) { - String styleParagraphe = nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name"); - node nod6 = a.retourneFirstNodeByNameAttributValue(nodstyleparagraphe, "style:style", "style:name", styleParagraphe); - if(nod6!=null) { - node nod7 = nod6.retourneFirstEnfantsByName("style:paragraph-properties"); - if(nod7.getAttributs().get("style:page-number")!=null) { - if(!nod7.getAttributs().get("style:page-number").equals("auto")) { - int numeroPage = Integer.valueOf(nod7.getAttributs().get("style:page-number")); - if(numeroPage%2==0) {usage2="left";}else{usage2="right";} + if(nodpage.get(j-1).getNodes().size()>0) { + if(nodpage.get(j-1).getNodes().get(0)!=null) { + if(nodpage.get(j).getNodes().size()>0) { + if(nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name")!=null) { + String styleParagraphe = nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name"); + node nod6 = a.retourneFirstNodeByNameAttributValue(nodstyleparagraphe, "style:style", "style:name", styleParagraphe); + if(nod6!=null) { + node nod7 = nod6.retourneFirstEnfantsByName("style:paragraph-properties"); + if(nod7.getAttributs().get("style:page-number")!=null) { + if(!nod7.getAttributs().get("style:page-number").equals("auto")) { + int numeroPage = Integer.valueOf(nod7.getAttributs().get("style:page-number")); + if(numeroPage%2==0) {usage2="left";}else{usage2="right";} + } } } }