[Libreoffice-commits] .: Branch 'libreoffice-3-3' - sw/source
Petr Mladek
pmladek at kemper.freedesktop.org
Wed Feb 2 08:07:00 PST 2011
sw/source/filter/ww8/wrtw8nds.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit b36353099d6c2518fcbe0c86e1254249b7114650
Author: Petr Mladek <pmladek at suse.cz>
Date: Wed Feb 2 17:06:01 2011 +0100
RTF export crasher (bnc#656503)
Signed off by Cedric
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx
index 026adba..faf6002 100644
--- a/sw/source/filter/ww8/wrtw8nds.cxx
+++ b/sw/source/filter/ww8/wrtw8nds.cxx
@@ -602,9 +602,10 @@ const SfxPoolItem* SwWW8AttrIter::HasTextItem( USHORT nWhich ) const
{
const SfxPoolItem* pRet = 0;
const SwpHints* pTxtAttrs = rNd.GetpSwpHints();
- xub_StrLen nTmpSwPos = m_rExport.m_aCurrentCharPropStarts.top();
- if (pTxtAttrs)
+
+ if (pTxtAttrs && m_rExport.m_aCurrentCharPropStarts.size())
{
+ xub_StrLen nTmpSwPos = m_rExport.m_aCurrentCharPropStarts.top();
for (USHORT i = 0; i < pTxtAttrs->Count(); ++i)
{
const SwTxtAttr* pHt = (*pTxtAttrs)[i];
More information about the Libreoffice-commits
mailing list