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

List:       kde-commits
Subject:    koffice/filters/kpresenter/pptx
From:       Carlos Licea <carlos_licea () hotmail ! com>
Date:       2010-08-17 4:14:42
Message-ID: 20100817041442.483CAAC881 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1164551 by clicea:

I shamefully have no idea why can't two readers coexist, but they
can't I get pseudo-random crashes when these two live in the same
scope, so limit the scope so that we don't have two readers
simultaneously.

 M  +4 -1      PptxXmlDocumentReader.cpp  


--- trunk/koffice/filters/kpresenter/pptx/PptxXmlDocumentReader.cpp #1164550:1164551
@@ -144,18 +144,21 @@
     }
 //! @todo expect other namespaces too...
 
+    {
     PptxXmlCommentAuthorsReader autorsReader(this);
     const QString autorsFilePath = \
m_context->relationships->targetForType(m_context->path, m_context->file, \
MSOOXML::Relationships::commentAuthors);  PptxXmlCommentAuthorsReaderContext \
                autorsContext;
     m_context->import->loadAndParseDocument(&autorsReader, autorsFilePath, \
&autorsContext);  d->commentAuthors = autorsContext.authors;
-
+    }
+    {
     MSOOXML::MsooXmlDrawingTableStyleReader tableStyleReader(this);
     d->tableStyleList = new MSOOXML::TableStyleList();
     MSOOXML::MsooXmlDrawingTableStyleContext tableStyleReaderContext;
     tableStyleReaderContext.styleList = d->tableStyleList;
     const QString tableStylesFilePath = \
m_context->relationships->targetForType(m_context->path, m_context->file, \
                MSOOXML::Relationships::tableStyles);
     m_context->import->loadAndParseDocument(&tableStyleReader, tableStylesFilePath, \
&tableStyleReaderContext); +    }
 
     TRY_READ(presentation)
     kDebug() << "===========finished============";


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

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