Shawn Milochik %!s(int64=11) %!d(string=hai) anos
pai
achega
c097228520
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      cell.go

+ 2 - 2
cell.go

@@ -194,8 +194,8 @@ func (c *Cell) formatToInt(format string) string {
 // Return the formatted version of the value.
 // Return the formatted version of the value.
 func (c *Cell) FormattedValue() string {
 func (c *Cell) FormattedValue() string {
 	var numberFormat string = c.GetNumberFormat()
 	var numberFormat string = c.GetNumberFormat()
-	isText := numberFormat == "general" && numberFormat == "@"
-	if c.Type() == CellTypeString && isText {
+	isText := numberFormat == "general" || numberFormat == "@"
+	if (c.Type() == CellTypeString) && isText {
 		return c.Value
 		return c.Value
 	}
 	}
 	switch numberFormat {
 	switch numberFormat {