diff options
author | Stef Walter <stef@memberwebs.com> | 2004-07-23 22:17:08 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-07-23 22:17:08 +0000 |
commit | beb5c690f629569628df0f730e51386e06229986 (patch) | |
tree | 716287d26a75ce5dab133e0b10ce3c3568695aa5 /src | |
parent | ff94b005f6507f54cb52393e88bc369d943c51da (diff) |
- Fix destination bug
Diffstat (limited to 'src')
-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) |