ooo-build r14194 - in branches/ooo-build-3-0: . patches/dev300



Author: strba
Date: Fri Oct  3 07:42:25 2008
New Revision: 14194
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14194&view=rev

Log:
fix a crash in n#430149

Modified:
   branches/ooo-build-3-0/ChangeLog
   branches/ooo-build-3-0/patches/dev300/sw-filter-import-TOX.diff

Modified: branches/ooo-build-3-0/patches/dev300/sw-filter-import-TOX.diff
==============================================================================
--- branches/ooo-build-3-0/patches/dev300/sw-filter-import-TOX.diff	(original)
+++ branches/ooo-build-3-0/patches/dev300/sw-filter-import-TOX.diff	Fri Oct  3 07:42:25 2008
@@ -86,8 +86,8 @@
 +		if ( pDoc->IsUpdatePgNumOfTOX() )
 +		{
 +                        pTOXNd = (SwTxtNode*)aInx.GetNode().GetCntntNode();
-+			if ( pTOXNd && (0 == pTOXNd->GetTxt().Len()))
-+                                continue;
++			if ( !pTOXNd || !pTOXNd->GetTxt().Len() )
++           	break;
 +		}
 +		else
 +			pTOXNd = pDoc->GetNodes().MakeTxtNode( aInsPos , pColl );



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]