[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/kotext/styles
From: Thomas Zander <zander () kde ! org>
Date: 2010-12-23 15:57:33
Message-ID: 20101223155733.5EE3D3E1FD () svn ! kde ! org
[Download RAW message or body]
SVN commit 1208885 by zander:
Check and avoid incosistent data
M +5 -1 KoParagraphStyle.cpp
--- trunk/koffice/libs/kotext/styles/KoParagraphStyle.cpp #1208884:1208885
@@ -1,5 +1,5 @@
/* This file is part of the KDE project
- * Copyright (C) 2006-2009 Thomas Zander <zander@kde.org>
+ * Copyright (C) 2006-2010 Thomas Zander <zander@kde.org>
* Copyright (C) 2007,2008 Sebastian Sauer <mail@dipe.org>
* Copyright (C) 2007,2010 Pierre Ducroquet <pinaraf@gmail.com>
* Copyright (C) 2008 Thorsten Zachmann <zachmann@kde.org>
@@ -119,6 +119,10 @@
void KoParagraphStyle::setParentStyle(KoParagraphStyle *parent)
{
+ if (parent == this) {
+ kWarning() << "FAIL: Can not set parent to myself";
+ return;
+ }
d->parentStyle = parent;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic