diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/core/data/ww5/pass/crash-1.doc | bin | 0 -> 3714 bytes | |||
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 5 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sw/qa/core/data/ww5/pass/crash-1.doc b/sw/qa/core/data/ww5/pass/crash-1.doc Binary files differnew file mode 100644 index 000000000000..5b94b9a5584b --- /dev/null +++ b/sw/qa/core/data/ww5/pass/crash-1.doc diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index 19e813231002..d6231a16d24b 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -4129,10 +4129,10 @@ OUString WW8PLCFx_Book::GetBookmark(long nStart,long nEnd, sal_uInt16 &nIndex) { bool bFound = false; sal_uInt16 i = 0; - if( pBook[0] && pBook[1] ) + if (pBook[0] && pBook[1]) { WW8_CP nStartAkt, nEndAkt; - do + while (i < aBookNames.size()) { void* p; sal_uInt16 nEndIdx; @@ -4155,7 +4155,6 @@ OUString WW8PLCFx_Book::GetBookmark(long nStart,long nEnd, sal_uInt16 &nIndex) } ++i; } - while (i < pBook[0]->GetIMax()); } return bFound ? aBookNames[i] : OUString(); } |