lib/writeexcel/worksheet.rb in ricardoo27-writeexcel-0.6.12.1 vs lib/writeexcel/worksheet.rb in ricardoo27-writeexcel-0.6.12.2
- old
+ new
@@ -968,12 +968,10 @@
# Set the merge_range property of the format object. For BIFF8+.
format.set_merge_range
# Excel doesn't allow a single cell to be merged
- raise "Can't merge single cell" if rwFirst == rwLast and
- colFirst == colLast
-
+ #raise "Can't merge single cell" if rwFirst == rwLast and colFirst == colLast
# Swap last row/col with first row/col as necessary
rwFirst, rwLast = rwLast, rwFirst if rwFirst > rwLast
colFirst, colLast = colLast, colFirst if colFirst > colLast
# Write the first cell