texmacs-dev
[Top][All Lists]
Advanced

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

[Texmacs-dev] Bug & crash report


From: Enrique Perez-Terron
Subject: [Texmacs-dev] Bug & crash report
Date: Fri, 21 Mar 2014 17:56:33 +0100
User-agent: Opera Mail/12.16 (Linux)

Hello,

Perusing the source code, I stumbled upon this:

TeXmacs-1.99.1-src/src/Data/String/analyze.cpp:540:
===========================

   string
   roman_nr (int nr) {
     if (nr<0) return "-" * roman_nr(nr);


Should't it rather be:

     if (nr<0) return "-" * roman_nr( - nr);
                                      ^
                                      ?

Similarly, in lines 558 through 560:

   string
   alpha_nr (int nr) {
     if (nr<0) return "-" * alpha_nr(nr);

Shouldn't it be "-nr" for the last occurence of "nr"?


I tested it by typing into a document:

  \number <enter> -1 <right> roman <enter>

Texmacs crashed.

Regards,
Enrique



reply via email to

[Prev in Thread] Current Thread [Next in Thread]