summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmlfldw.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-15 10:45:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-15 13:26:09 +0000
commit16c565461b40c6876e69dc7bcc18f7c4db7fb94d (patch)
treee83808868605db71ceff2880588bfe417e3172c3 /sw/source/filter/html/htmlfldw.cxx
parent2e5ec4f5b6cf295c64598c4284f01814d218c489 (diff)
Related: #i17171# identify places where -1 was cast to 0xFFFF in the past
try and do so anyway. Could be picking that sort of lint out of writer for a while to come :-( Change-Id: I4efb94e5ed33025f7f416c096af25ba358ef45af
Diffstat (limited to 'sw/source/filter/html/htmlfldw.cxx')
-rw-r--r--sw/source/filter/html/htmlfldw.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/html/htmlfldw.cxx b/sw/source/filter/html/htmlfldw.cxx
index 70887214f610..02057ee0e3f9 100644
--- a/sw/source/filter/html/htmlfldw.cxx
+++ b/sw/source/filter/html/htmlfldw.cxx
@@ -315,7 +315,7 @@ static Writer& OutHTML_SwField( Writer& rWrt, const SwField* pFld,
sal_uInt16 nScript =
SwHTMLWriter::GetCSS1ScriptForScriptType( nScriptType );
- if( nPos < sExpand.getLength() || nScript != rHTMLWrt.nCSS1Script )
+ if( (nPos < sExpand.getLength() && nPos >= 0) || nScript != rHTMLWrt.nCSS1Script )
{
bNeedsCJKProcessing = sal_True;
}