summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ABWStylesCollector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ABWStylesCollector.cpp b/src/lib/ABWStylesCollector.cpp
index 24e332e..773a85b 100644
--- a/src/lib/ABWStylesCollector.cpp
+++ b/src/lib/ABWStylesCollector.cpp
@@ -160,8 +160,8 @@ void libabw::ABWStylesCollector::closeTable()
{
if (!m_ps->m_tableStates.empty())
{
- m_tableSizes[m_ps->m_tableStates.top().m_currentTableId]
- = m_ps->m_tableStates.top().m_currentTableWidth;
+ auto curWidth = m_ps->m_tableStates.top().m_currentTableWidth;
+ m_tableSizes[m_ps->m_tableStates.top().m_currentTableId] = curWidth > 0 ? curWidth : 0;
m_ps->m_tableStates.pop();
}
}