[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-29 14:25:36
Message-ID: 20101229142536.A78613E1FA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1210097 by zander:
Returning styleId is special
M +5 -1 KoParagraphStyle.cpp
--- trunk/koffice/libs/kotext/styles/KoParagraphStyle.cpp #1210096:1210097
@@ -813,7 +813,11 @@
int KoParagraphStyle::styleId() const
{
- return propertyInt(StyleId);
+ // duplicate some code to avoid getting the parents style id
+ QVariant variant = d->stylesPrivate.value(StyleId);
+ if (variant.isNull())
+ return 0;
+ return variant.toInt();
}
void KoParagraphStyle::setStyleId(int id)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic