summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2010-11-18 12:37:58 +0100
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2011-02-02 13:51:19 +0100
commitb61d4e3e3d519672f908f87ad1987b02cf14c40e (patch)
treef479292d77de27ad6c3f6084aebe0646aefa6a91
parent60fc5e3665587389888e83c8970f1f216a72efbc (diff)
Fixed an infinite loop while exporting some files in doc/docx/rtf
-rw-r--r--sw/source/filter/ww8/wrtww8.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/wrtww8.hxx b/sw/source/filter/ww8/wrtww8.hxx
index a8074810bc..4af4bb137a 100644
--- a/sw/source/filter/ww8/wrtww8.hxx
+++ b/sw/source/filter/ww8/wrtww8.hxx
@@ -1405,7 +1405,7 @@ public:
bool IsTxtAttr(xub_StrLen nSwPos);
- void NextPos() { nAktSwPos = SearchNext( nAktSwPos + 1 ); }
+ void NextPos() { if ( nAktSwPos < STRING_NOTFOUND ) nAktSwPos = SearchNext( nAktSwPos + 1 ); }
void OutAttr( xub_StrLen nSwPos );
virtual const SfxPoolItem* HasTextItem( USHORT nWhich ) const;
@@ -1466,7 +1466,7 @@ public:
bool IsDropCap( int nSwPos );
bool RequiresImplicitBookmark();
- void NextPos() { nAktSwPos = SearchNext( nAktSwPos + 1 ); }
+ void NextPos() { if ( nAktSwPos < STRING_NOTFOUND ) nAktSwPos = SearchNext( nAktSwPos + 1 ); }
void OutAttr( xub_StrLen nSwPos, bool bRuby = false );
virtual const SfxPoolItem* HasTextItem( USHORT nWhich ) const;