Fixup change for CellReference to keep the behavior the same as before
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1809737 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5c90d94d8c
commit
991fba37a2
@ -125,7 +125,7 @@ public final class HSSFPatriarch implements HSSFShapeContainer, Drawing<HSSFShap
|
|||||||
Set<String> coordinates = new HashSet<>(tailRecords.size());
|
Set<String> coordinates = new HashSet<>(tailRecords.size());
|
||||||
for(NoteRecord rec : tailRecords.values()){
|
for(NoteRecord rec : tailRecords.values()){
|
||||||
String noteRef = new CellReference(rec.getRow(),
|
String noteRef = new CellReference(rec.getRow(),
|
||||||
rec.getColumn()).formatAsString(); // A1-style notation
|
rec.getColumn(), true, true).formatAsString(); // A1-style notation
|
||||||
if(coordinates.contains(noteRef )){
|
if(coordinates.contains(noteRef )){
|
||||||
throw new IllegalStateException("found multiple cell comments for cell " + noteRef );
|
throw new IllegalStateException("found multiple cell comments for cell " + noteRef );
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user