From f8e6aa066aacad925c3e2f945195bd2ecdeefae9 Mon Sep 17 00:00:00 2001 From: Stef Date: Fri, 23 Jul 2004 22:17:08 +0000 Subject: - Fix destination bug --- src/xmlcomposer.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/xmlcomposer.cpp b/src/xmlcomposer.cpp index 525d815..73d9521 100644 --- a/src/xmlcomposer.cpp +++ b/src/xmlcomposer.cpp @@ -154,17 +154,14 @@ void XmlComposer::charData(wstring data) { ASSERT(m_curLevel != NULL); DestinationPtr destination = m_curLevel->getDestination(); - if(destination) - { - destination->charData(data); - } - else + + if(!destination) { - // TODO: Change this so it sends char data to new destination - // We should always have a destination destination = DestinationPtr(new Content); setDestination(destination); } + + destination->charData(data); } void XmlComposer::controlWord(const string& cw, int flags, int param) -- cgit v1.2.3