summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-21 14:01:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-21 14:01:03 +0100
commitd0813b432f94d214a6961cb6a1eb11f65399e59b (patch)
tree6ae46f697d88d387789ebd23644a54f7efbf5219
parente0ad897e40e57ab81fc0a18e8f907594f17b7430 (diff)
avoid hang in certain ww6 docs
Change-Id: Ife15f6a6e4b31c6e226a154dd708290266e86a2e
-rw-r--r--sw/qa/core/data/ww6/pass/hang-1.docbin0 -> 6630 bytes
-rw-r--r--sw/source/filter/ww8/ww8par.cxx2
2 files changed, 1 insertions, 1 deletions
diff --git a/sw/qa/core/data/ww6/pass/hang-1.doc b/sw/qa/core/data/ww6/pass/hang-1.doc
new file mode 100644
index 000000000000..825283d51e19
--- /dev/null
+++ b/sw/qa/core/data/ww6/pass/hang-1.doc
Binary files differ
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index ee603c2f57fb..dd12be46abf5 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -3880,7 +3880,7 @@ void SwWW8ImplReader::ReadAttrs(WW8_CP& rTextPos, WW8_CP& rNext, long nTextEnd,
{
m_aCurrAttrCP = rTextPos;
rNext = ReadTextAttr(rTextPos, nTextEnd, rbStartLine);
- if (rTextPos == rNext && rTextPos == WW8_CP_MAX)
+ if (rTextPos == rNext && rTextPos >= nTextEnd)
break;
}
while( rTextPos >= rNext );