[PR] Fix getDimFromCell trailing space for XSSF in-cell pictur e anchors [poi]

arimu1 (via GitHub) <[email protected]>
Newsgroups gmane.comp.jakarta.poi.devel
Message-ID <[email protected]>
arimu1 opened a new pull request, #1211:
URL: https://github.com/apache/poi/pull/1211

   ## Summary
   - Fix `ImageUtils.getDimFromCell` when `hssfUnits == 0` (XSSF/OOXML anchors): use `endD` for trailing space instead of `dim - endD`, matching the semantics of the HSSF branch above it.
   - Add regression test for a single-cell XSSF anchor where zero offsets previously produced 0-sized dimensions and broke `picture.resize()`.
   
   Fixes #1201
   
   ## Test plan
   - [x] `./gradlew :poi-ooxml:test --tests org.apache.poi.xssf.usermodel.TestXSSFPicture.testGetDimensionFromAnchorSingleCell`
   - [x] `./gradlew :poi:test --tests org.apache.poi.ss.util.TestImageUtils`
   
   Made with [Cursor](https://cursor.com)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.