Commits

Anonymous committed 8cd4043

sw33bf06: #i112657#: apply patch by dtardon: do not crash when there are
merged cells not started by \clmgf at the beginning of a row

Comments (0)

Files changed (1)

sw/source/filter/rtf/rtftbl.cxx

 			break;
 
 		case RTF_CLMRG:
-			aMergeBoxes[ nBoxCnt ] = TRUE;
+            // would crash later on reading \cellx (#i112657#):
+            // the first cell cannot be merged with earlier ones.
+            if (nBoxCnt != 0)
+            {
+                aMergeBoxes[ nBoxCnt ] = TRUE;
+            }
 			break;
 
 		case RTF_CELLX: