V4.4.3 bug correction robustesse de l'analyse de la structuration
This commit is contained in:
parent
8233c15455
commit
a41345ea8b
Binary file not shown.
Binary file not shown.
@ -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";}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user