diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8graf.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index 44f8630ead1d..1109229f4e58 100644 --- a/sw/source/filter/ww8/ww8graf.cxx +++ b/sw/source/filter/ww8/ww8graf.cxx @@ -779,7 +779,7 @@ bool SwWW8ImplReader::GetTxbxTextSttEndCp(WW8_CP& rStartCp, WW8_CP& rEndCp, // then determine start and end void* pT0; - if( !pT->Get( rStartCp, pT0 ) ) + if (!pT->Get(rStartCp, pT0) || rStartCp < 0) { OSL_ENSURE( false, "+where's the text graphic (2)?" ); return false; @@ -800,7 +800,7 @@ bool SwWW8ImplReader::GetTxbxTextSttEndCp(WW8_CP& rStartCp, WW8_CP& rEndCp, } } pT->advance(); - if( !pT->Get( rEndCp, pT0 ) ) + if (!pT->Get(rEndCp, pT0) || rEndCp < 0) { OSL_ENSURE( false, "+where's the text graphic (3)?" ); return false; |