]> source.dussan.org Git - poi.git/commitdiff
Fix for issue# 35716: additional check added in method hasRange to detect cellrange...
authorAmol S. Deshmukh <amol@apache.org>
Wed, 13 Jul 2005 13:12:39 +0000 (13:12 +0000)
committerAmol S. Deshmukh <amol@apache.org>
Wed, 13 Jul 2005 13:12:39 +0000 (13:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353748 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/util/RangeAddress.java

index f2daf6a51365b8de4679d39824837fc66ff90ac0..0f9c31e2e1e4a8a08c3f6f1fc5231511046f413c 100644 (file)
@@ -167,9 +167,7 @@ public class RangeAddress {
   }
   
   public boolean hasRange (){
-    if(m_cellFrom == null || m_cellTo == null)
-      return false;
-    return true;
+      return (m_cellFrom != null && m_cellTo != null && !m_cellFrom.equals(m_cellTo));
   }
   
   public boolean hasCell (){