On Tue, Sep 03, 2002 at 02:40:32PM +0100, Angus Leeming wrote: > Norbert Koksch has discovered a problem with the preview code that is > triggered if a document contains more than 999 (!) formulae. > > The formulae are numbered so: > > ostringstream os; > os << base_ > << setfill('0') << setw(3) << counter_++ > << "." << to_format_;
Not my doing I believe. > ie they appear like > lyxpreview001.ppm -> lyxpreview999.ppm > > The setw() call above should obviously be passed the required number of > digits. Given the number of snippets, nsnippets, what's the elegant way to > get ndigits? This is clearly brain-dead: Simply say '12' there. You can quote that later: "Nobody ever needs mor the 1O^12 formulas in his dissertation" André -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)