https://bz.apache.org/bugzilla/show_bug.cgi?id=69896

            Bug ID: 69896
           Summary: Missing unsetIS in XSSFCell.setCellValueImpl (V5.5.0)
           Product: POI
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: XSSF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

In XSSFCell:

    protected void setCellValueImpl(RichTextString str) {
...
            if(_cell.getT() == STCellType.INLINE_STR) {
                //set the 'pre-evaluated result
                _cell.setV(str.getString());
...

sets shared string value in parallel to inlineStr value:

<xml-fragment r="A2" t="inlineStr"
xmlns:main="http://schemas.openxmlformats.org/spreadsheetml/2006/main";>
  <main:v>NEW_VALUE</main:v>
  <main:is>
    <main:t>OLD_VALUE</main:t>
  </main:is>
</xml-fragment>

I think either "is" value should be changed or "is" should be unset and cell
type changed:

            if(_cell.getT() == STCellType.INLINE_STR) {
                //set the 'pre-evaluated result
                _cell.setV(str.getString());
                _cell.unsetIs();
                _cell.setType(STCellType.S);

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to