Index: src/text/ptbl/xp/pd_DocumentRDF.cpp =================================================================== --- src/text/ptbl/xp/pd_DocumentRDF.cpp (revision 30791) +++ src/text/ptbl/xp/pd_DocumentRDF.cpp (working copy) @@ -76,7 +76,7 @@ return 0; } }; -static PD_SemanticItemFactory* s_SemanticItemFactory = new PD_SemanticItemFactoryNull; +static PD_SemanticItemFactory* s_SemanticItemFactory; void PD_DocumentRDF::setSemanticItemFactory( PD_SemanticItemFactory* f ) { @@ -95,7 +95,7 @@ return std::make_pair(0,0); } }; -static PD_RDFDialogs* s_RDFDialogs = new PD_RDFDialogsNull; +static PD_RDFDialogs* s_RDFDialogs; void PD_DocumentRDF::setRDFDialogs( PD_RDFDialogs* d ) { @@ -2996,6 +2996,10 @@ m_indexAP( 0 ) { UT_DEBUGMSG(("PD_DocumentRDF() this:%p doc:%p\n",this,doc)); + if (!s_SemanticItemFactory) + s_SemanticItemFactory = new PD_SemanticItemFactoryNull; + if (!s_RDFDialogs) + s_RDFDialogs = new PD_RDFDialogsNull; } PD_DocumentRDF::~PD_DocumentRDF()