[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/office/tellico
From:       Robby Stephenson <robby () periapsis ! org>
Date:       2009-11-01 0:33:17
Message-ID: 1257035597.560880.18951.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1043187 by rstephenson:

fix crashing bug when loading ISBNs from file

 M  +4 -0      ChangeLog  
 M  +1 -1      src/fetchdialog.cpp  


--- trunk/extragear/office/tellico/ChangeLog #1043186:1043187
@@ -1,3 +1,7 @@
+2009-10-31  Robby Stephenson  <robby@periapsis.org>
+
+	* Fixed crashing bug for loading ISBN list from file.
+
 2009-10-22  Robby Stephenson  <robby@periapsis.org>
 
 	* Fixed bug with the sort order not being saved.
--- trunk/extragear/office/tellico/src/fetchdialog.cpp #1043186:1043187
@@ -680,7 +680,7 @@
   }
   const QTextCursor cursor = m_isbnTextEdit->textCursor();
   // only try to validate if char before cursor is an eol
-  if(text.at(cursor.position()-1) != QLatin1Char('\n')) {
+  if(cursor.atStart() || text.at(cursor.position()-1) != QLatin1Char('\n')) {
     return;
   }
   QStringList lines = text.left(cursor.position()-1).split(QLatin1String("\n"));
[prev in list] [next in list] [prev in thread] [next in thread] 

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