summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2019-08-17 15:54:33 +0200
committerDavid Tardon <dtardon@redhat.com>2019-08-17 15:54:44 +0200
commit5b6dfeb2ad6d66ae7b91f54eef6e1f170cc4d1ec (patch)
tree2668e747dfa44e6fd80e78187e7ecec7182cd422
parent2daca538adca1e9dad25b9f9bfa1fdac5fa8908f (diff)
cid#1452381 avoid use of invalid iteratorlibabw-0.1.3
Change-Id: I91e3f2e5a191b4b476b8b0626b4ab7401dd5ab92
-rw-r--r--src/lib/ABWContentCollector.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/ABWContentCollector.cpp b/src/lib/ABWContentCollector.cpp
index d008eda..3788868 100644
--- a/src/lib/ABWContentCollector.cpp
+++ b/src/lib/ABWContentCollector.cpp
@@ -2197,8 +2197,11 @@ void libabw::ABWContentCollector::openFrame(const char *props, const char *image
m_outputElements.addOpenTextBox(propList);
return;
}
- m_ps->m_parsingContext=ABW_FRAME_UNKNOWN;
- ABW_DEBUG_MSG(("libabw::ABWContentCollector::openFrame: sorry, unknown frame type: %s\n", iter->second.c_str()));
+ else
+ {
+ m_ps->m_parsingContext=ABW_FRAME_UNKNOWN;
+ ABW_DEBUG_MSG(("libabw::ABWContentCollector::openFrame: sorry, unknown frame type: %s\n", iter->second.c_str()));
+ }
}
void libabw::ABWContentCollector::closeFrame(libabw::ABWOutputElements *(&elements), bool &pageFrame)