[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/filters/kspread/gnumeric
From: Alfredo Beaumont Sainz <alfredo.beaumont () gmail ! com>
Date: 2007-11-26 22:08:14
Message-ID: 1196114894.920629.16101.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 742004 by abeaumont:
Check for General format aswell, and add a sane default Format
M +7 -1 gnumericexport.cc
--- trunk/koffice/filters/kspread/gnumeric/gnumericexport.cc #742003:742004
@@ -718,11 +718,14 @@
switch( style.formatType())
{
+ case Format::Generic:
+ stringFormat="General";
+ break;
case Format::Number:
stringFormat="0.00";
break;
case Format::Text:
- stringFormat="general";
+ stringFormat="General";
break;
case Format::Money:
@@ -896,6 +899,9 @@
stringFormat = style.customFormat();
break;
default:
+ // This is a required parameter, so let's write a sane default
+ kWarning(30521) << "Unhandled Format value, setting 'General' as \
default: " << style.formatType(); + stringFormat = "General";
break;
}
cell_style.setAttribute("Format",stringFormat);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic