Author Topic: TeX comment_erase divide by zero exception  (Read 2677 times)

batz

  • New Community Member
  • Posts: 1
  • Hero Points: 0
TeX comment_erase divide by zero exception
« on: October 17, 2007, 01:21:40 am »
Hi allz, I use SlickEdit for LaTeX and when I tried to do a comment_erase I would always get a divide by zero exception, I looked at the code and the problem is that p_syntaxIndent was NULL, to fix this simply add a check to line 1476 of box.e:
if (leftmostcol > 1 || (p_SyntaxIndent > 0 && !(size_left_comment % p_SyntaxIndent)))
and it'll work fine.  (I'm not sure why p_syntaxIndent is zero...)