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

List:       kde-commits
Subject:    koffice/libs/kotext
From:       Casper Boemann <cbr () boemann ! dk>
Date:       2010-08-11 17:54:58
Message-ID: 20100811175458.0BF55AC7E9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1162226 by boemann:

fix yet another potential crash


 M  +2 -2      KoTableColumnAndRowStyleManager.cpp  


--- trunk/koffice/libs/kotext/KoTableColumnAndRowStyleManager.cpp #1162225:1162226
@@ -54,7 +54,7 @@
         return;
     }
 
-    if (d->tableColumnStyles.value(column) == columnStyle) {
+    if (column < d->tableColumnStyles.size() && d->tableColumnStyles.value(column) == columnStyle) {
         return;
     }
 
@@ -82,7 +82,7 @@
         return;
     }
 
-    if (d->tableRowStyles.value(row) == rowStyle) {
+    if (row < d->tableRowStyles.size() && d->tableRowStyles.value(row) == rowStyle) {
         return;
     }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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