diff --git a/src/java/org/apache/poi/hssf/record/formula/AreaPtg.java b/src/java/org/apache/poi/hssf/record/formula/AreaPtg.java index 96e54ef973..67c5c98ac7 100644 --- a/src/java/org/apache/poi/hssf/record/formula/AreaPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/AreaPtg.java @@ -97,6 +97,10 @@ public class AreaPtg setFirstColumn((short)xyxy[1]); setLastRow((short)xyxy[2]); setLastColumn((short)xyxy[3]); + setFirstColRelative(true); + setLastColRelative(true); + setFirstRowRelative(true); + setLastRowRelative(true); }