View | Details | Raw Unified | Return to bug 49820
Collapse All | Expand All

(-)src/scratchpad/src/org/apache/poi/hwpf/usermodel/Paragraph.java (-7 / +12 lines)
Lines 435-449 Link Here
435
  }
435
  }
436
436
437
  public int getIlfo()
437
  public int getIlfo()
438
   {
438
  {
439
     return _props.getIlfo();
439
    return _props.getIlfo();
440
   }
440
  }
441
441
442
   public int getIlvl()
442
  public int getIlvl()
443
   {
443
  {
444
     return _props.getIlvl();
444
    return _props.getIlvl();
445
   }
445
  }
446
446
447
  public int getLvl()
448
  {
449
    return _props.getLvl();
450
  }
451
   
447
  void setTableRowEnd(TableProperties props)
452
  void setTableRowEnd(TableProperties props)
448
  {
453
  {
449
    setTableRowEnd((byte)1);
454
    setTableRowEnd((byte)1);
(-)src/scratchpad/src/org/apache/poi/hwpf/usermodel/ParagraphProperties.java (-1 / +1 lines)
Lines 35-41 Link Here
35
    this.field_17_fWidowControl = 1;
35
    this.field_17_fWidowControl = 1;
36
    this.field_21_lspd.setMultiLinespace((short)1);
36
    this.field_21_lspd.setMultiLinespace((short)1);
37
    this.field_21_lspd.setDyaLine((short)240);
37
    this.field_21_lspd.setDyaLine((short)240);
38
    this.field_12_ilvl = (byte)9;
38
    this.field_58_lvl = (byte)9;
39
    this.field_66_rgdxaTab = new int[0];
39
    this.field_66_rgdxaTab = new int[0];
40
    this.field_67_rgtbd = new byte[0];
40
    this.field_67_rgtbd = new byte[0];
41
    this.field_63_dttmPropRMark = new DateAndTime();
41
    this.field_63_dttmPropRMark = new DateAndTime();
(-)src/scratchpad/src/org/apache/poi/hwpf/sprm/ParagraphSprmUncompressor.java (-4 / +4 lines)
Lines 336-346 Link Here
336
        }
336
        }
337
        break;
337
        break;
338
      case 0x40:
338
      case 0x40:
339
339
        // this condition commented out, as Word seems to set outline levels even for paragraph with other styles than
340
        //newPAP._lvl = param;
340
        // Heading 1..9, even though specification does not say so. See bug 49820 for discussion.
341
        if (newPAP.getIstd () >= 1 && newPAP.getIstd () <= 9)
341
        //if (newPAP.getIstd () < 1 && newPAP.getIstd () > 9)
342
        {
342
        {
343
          newPAP.setIlvl ((byte) sprm.getOperand());
343
          newPAP.setLvl ((byte) sprm.getOperand());
344
        }
344
        }
345
        break;
345
        break;
346
      case 0x41:
346
      case 0x41:

Return to bug 49820