poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58442] New: Add method to in-place reorganize an AreaPtg's to be defined as upper-left and lower-right
Date Mon, 21 Sep 2015 22:13:00 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58442

            Bug ID: 58442
           Summary: Add method to in-place reorganize an AreaPtg's to be
                    defined as upper-left and lower-right
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SS Common
          Assignee: dev@poi.apache.org
          Reporter: javenoneal@gmail.com
            Blocks: 58348

Created attachment 33126
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33126&action=edit
Add sortTopLeftToBottomRight method to AreaPtg

An AreaPtg refers to an area defined by the first and last row and columns.
It's possible for an AreaPtg's first row to be larger than its last row, or its
first column to be larger than its last column. As a convenience, AreaPtg
should provide a method that will re-sort the first/last row/columns to restore
top left to lower right order.

This re-ordering currently happens as part of construction of the AreaPtg, but
subsequent modifications (setFirstRow, setLastCol, etc) can allow the AreaPtg's
references to become inverted.

This is needed when formulas are copied or compared.

Attached patch includes unit test.

-- 
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


Mime
View raw message