summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStef <stef@ws.local>2004-07-23 22:17:08 +0000
committerStef <stef@ws.local>2004-07-23 22:17:08 +0000
commitf8e6aa066aacad925c3e2f945195bd2ecdeefae9 (patch)
tree716287d26a75ce5dab133e0b10ce3c3568695aa5 /src
parent40f2fd5b26fe0dfdb3c5c410b7936187817dfc14 (diff)
- Fix destination bug
Diffstat (limited to 'src')
-rw-r--r--src/xmlcomposer.cpp11
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)