You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2019/04/21 19:44:25 UTC

[Bug 63371] New: addMergedRegion does not update CTMergeCells.getCount

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

            Bug ID: 63371
           Summary: addMergedRegion does not update CTMergeCells.getCount
           Product: POI
           Version: 4.0.x-dev
          Hardware: PC
            Status: NEW
          Severity: minor
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: dmgauntt@uab.edu
  Target Milestone: ---

The return value of the following function is the same before and after calling
XSSFSheet.addMergedRegion(CellRangeAddress):

XSSFSheet.getCTWorksheet().getMergeCells().getCount()

The return value of the following functions increments properly after calling
addMergedRegion:

XSSFSheet.getMergedRegions.size()
XSSFSheet.getNumMergedRegions()
XSSFSheet.getCTWorksheet().getMergeCells().getMergeCellList().size().

I will be uploading a test case and a patch soon.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 63371] addMergedRegion does not update CTMergeCells.getCount

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63371

--- Comment #2 from David Gauntt <dm...@uab.edu> ---
Created attachment 36541
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36541&action=edit
Test case to illustrate bug 63371

Before applying the patch, this code writes the following to System.out:


testMergeRegions(After adding first region)
ranges.size=1
numMergedRegions=1
ctMergeCellCount=0
ctMergeCellListSize=1

After applying the patch, the result is

testMergeRegions(After adding first region)
ranges.size=1
numMergedRegions=1
ctMergeCellCount=1
ctMergeCellListSize=1

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 63371] addMergedRegion does not update CTMergeCells.getCount

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63371

--- Comment #1 from David Gauntt <dm...@uab.edu> ---
Created attachment 36540
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36540&action=edit
Patch to have addMergedRegion update CTMergeCells.getCount()

This also includes a fix to bug 63073

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 63371] addMergedRegion does not update CTMergeCells.getCount

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63371

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #3 from Dominik Stadler <do...@gmx.at> ---
Fixed on trunk via r1858022, thanks for the patch!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 63371] addMergedRegion does not update CTMergeCells.getCount

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63371

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org