1. Sven Hendriks
  2. XlsXcessive

Commits

Sven Hendriks  committed bb2356d

Fixed bug that would occur when creating a cell with a formula as value and coordinates instead of a reference

  • Participants
  • Parent commits 0906049
  • Branches default

Comments (0)

Files changed (1)

File xlsxcessive/worksheet.py

View file
  • Ignore whitespace
     def __init__(self, reference=None, value=None, coords=None, format=None, worksheet=None):
         self._reference = reference.upper() if reference else reference
         self._coords = coords
+        if not self._reference and self._coords:
+            self._reference = self._coords_to_a1()
         self.cell_type = None
         self._value = None
         self._is_date = False
             self._set_value(value)
         self.format = format
         self.merge_range = None
-        if not self._reference and self._coords:
-            self._reference = self._coords_to_a1()
 
     @classmethod
     def from_reference(cls, ref):