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

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

SVN commit 1162219 by boemann:

Fix at least some of the crashes. There is still something fishy


 M  +2 -2      KoTableColumnStyle.cpp  


--- trunk/koffice/libs/kotext/styles/KoTableColumnStyle.cpp #1162218:1162219
@@ -41,7 +41,7 @@
 class KoTableColumnStyle::Private : public QSharedData
 {
 public:
-    Private() : parentStyle(0), next(0) {}
+    Private() : QSharedData(), parentStyle(0), next(0) {}
 
     ~Private() {
     }
@@ -269,7 +269,7 @@
 
 bool KoTableColumnStyle::operator==(const KoTableColumnStyle &other) const
 {
-    return other.d->stylesPrivate == d->stylesPrivate;
+    return (other.d == d);
 }
 
 void KoTableColumnStyle::removeDuplicates(const KoTableColumnStyle &other)
[prev in list] [next in list] [prev in thread] [next in thread] 

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