Shawn Milochik před 11 roky
rodič
revize
c097228520
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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.
 func (c *Cell) FormattedValue() string {
 	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
 	}
 	switch numberFormat {