[Libreoffice-commits] .: sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Mon May 23 04:50:49 PDT 2011
sc/source/filter/rtf/rtfparse.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d30c66cb1954103a159da2ef82dba4bf9685844f
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun May 22 23:35:50 2011 +0200
fix for fdo#37429 crash when copy/paste table from writer to calc
diff --git a/sc/source/filter/rtf/rtfparse.cxx b/sc/source/filter/rtf/rtfparse.cxx
index 44d0498..1243138 100644
--- a/sc/source/filter/rtf/rtfparse.cxx
+++ b/sc/source/filter/rtf/rtfparse.cxx
@@ -299,7 +299,7 @@ void ScRTFParser::ProcToken( ImportInfo* pInfo )
{
case RTF_TROWD: // denotes table row defauls, before RTF_CELLX
{
- if ( (pD = &(pDefaultList->back())) != 0 )
+ if ( !pDefaultList->empty() && (pD = &(pDefaultList->back())) != 0 )
nLastWidth = pD->nTwips;
nColCnt = 0;
pDefaultList->clear();
More information about the Libreoffice-commits
mailing list