[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 21:48:17
Message-ID: 1196113697.489237.14809.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 741995 by abeaumont:

Check that there's content before accesing it


 M  +2 -0      gnumericimport.cc  


--- trunk/koffice/filters/kspread/gnumeric/gnumericimport.cc #741994:741995
@@ -980,6 +980,8 @@
   int l = formatString.length();
   int lastPos = 0;
 
+  if (l == 0) return;
+
   Style style;
   if (formatString[l - 1] == '%')
     style.setFormatType(Format::Percentage);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic