diff options
Diffstat (limited to 'src/xmlcomposer.cpp')
-rw-r--r-- | src/xmlcomposer.cpp | 11 |
1 files 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) |