[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kpresenter/part
From: Sebastian Sauer <mail () dipe ! org>
Date: 2010-10-13 16:12:24
Message-ID: 20101013161224.C0C3FAC895 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1185531 by sebsauer:
and while on it don't define shapeData 2 times.
M +3 -3 KPrPlaceholderTextStrategy.cpp
--- trunk/koffice/kpresenter/part/KPrPlaceholderTextStrategy.cpp #1185530:1185531
@@ -106,10 +106,10 @@
void KPrPlaceholderTextStrategy::saveOdf( KoShapeSavingContext & context )
{
if (m_textShape) {
- if (KoTextShapeData *shapeData = qobject_cast<KoTextShapeData*>(m_textShape->userData())) {
+ KoTextShapeData *shapeData = qobject_cast<KoTextShapeData*>(m_textShape->userData());
+ if (shapeData) {
KoStyleManager *styleManager = KoTextDocument(shapeData->document()).styleManager();
- KoTextShapeData *shapeData = qobject_cast<KoTextShapeData*>(m_textShape->userData());
- if (styleManager && shapeData) {
+ if (styleManager) {
QTextDocument *document = shapeData->document();
QTextBlock block = document->begin();
QString styleName = KoTextWriter::saveParagraphStyle(block, styleManager, context);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic