From 9e0f8dfa9a67b5ceb37db033df4db2b46874aa87 Mon Sep 17 00:00:00 2001 From: Stef Date: Sun, 11 Jul 2004 21:33:06 +0000 Subject: Some level fixes --- src/xmlcomposer.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/xmlcomposer.cpp') diff --git a/src/xmlcomposer.cpp b/src/xmlcomposer.cpp index 11ed2a0..4091adb 100644 --- a/src/xmlcomposer.cpp +++ b/src/xmlcomposer.cpp @@ -280,22 +280,11 @@ void RtfParser::groupEnd() ASSERT(m_curLevel != NULL); bool done = true; - // First see if this level has an ananlyser - AnalyserPtr analyser = m_curLevel->getAnalyser(false); - if(!analyser) - { - // If not then the analyser is going to live and we - // get one from a previous level - done = false; - analyser = m_curLevel->getAnalyser(); - } + LevelHandler::groupEnd(); - if(done) - analyser->done(); - else + AnalyserPtr analyser = m_curLevel->getAnalyser(); + if(analyser) analyser->groupEnd(); - - LevelHandler::groupEnd(); } #define ON_INITIALIZE(cls) \ -- cgit v1.2.3