summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8par.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index a68b9a640dd6..1de95d3a4067 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -4656,7 +4656,9 @@ void SwWW8ImplReader::StoreMacroCmds()
{
if (m_xWwFib->m_lcbCmds)
{
- m_pTableStream->Seek(m_xWwFib->m_fcCmds);
+ bool bValidPos = checkSeek(*m_pTableStream, m_xWwFib->m_fcCmds);
+ if (!bValidPos)
+ return;
uno::Reference < embed::XStorage > xRoot(m_pDocShell->GetStorage());