Commits

Michael Stahl  committed 9b44323

sw33bf06: #i112516#: NewTabPortion(): apply patch by cmc: fix SIGFPE

  • Participants
  • Parent commits 8cd4043

Comments (0)

Files changed (1)

File sw/source/core/text/txttab.cxx

 			}
             SwTwips nCount = nSearchPos;
 
+			//Minimum tab stop width is 1
+			if (nDefTabDist <= 0)
+			    nDefTabDist = 1;
+
 			nCount /= nDefTabDist;
             nNextPos = nCount < 0 || (!nCount && nSearchPos <= 0)? nCount * nDefTabDist :( nCount + 1 ) * nDefTabDist ;
             // --> FME 2004-09-21 #117919 Minimum tab stop width is 1 or 51 twips: