Re: Export A.B.lyx in postscript gives A.ps

2000-02-07 Thread Etienne Grossmann
Hello, # I don't know if Lgb applied this, but the best bet is to send in # a real patch, because that is the easiest. something like : --- --- src/support/filetools.C.origThu Feb 3 22:17:46 2000 +++ src/support/filet

Re: Export A.B.lyx in postscript gives A.ps

2000-02-07 Thread Lars Gullik Bjønnes
"Asger K. Alstrup Nielsen" <[EMAIL PROTECTED]> writes: | > the patch should probably be (at filetools.C:909, in 1.1.4) | > | > last_dot = oldname.rfind('.'); | > if (last_dot < last_slash && | > last_slash != string::npos && | > last_dot < last_slash ) | >

Re: Export A.B.lyx in postscript gives A.ps

2000-02-05 Thread Asger K. Alstrup Nielsen
> the patch should probably be (at filetools.C:909, in 1.1.4) > > last_dot = oldname.rfind('.'); > if (last_dot < last_slash && > last_slash != string::npos && > last_dot < last_slash ) > last_dot = string::npos; > > Should I send a true

Re: Export A.B.lyx in postscript gives A.ps

2000-02-04 Thread Etienne Grossmann
Hello, the patch should probably be (at filetools.C:909, in 1.1.4) last_dot = oldname.rfind('.'); if (last_dot < last_slash && last_slash != string::npos && last_dot < last_slash ) last_dot = string::npos; Should I send a true pat

Re: Export A.B.lyx in postscript gives A.ps

2000-02-04 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | > Silly question, what is that string::npos? | | This is the index of the last character in the string plus one. | At least I think so ;-) You thought wrong. It is the maximum amount of chars possible amount of chars in a string + 1. It is often the

Re: Export A.B.lyx in postscript gives A.ps

2000-02-03 Thread Andre Poenitz
> Silly question, what is that string::npos? This is the index of the last character in the string plus one. At least I think so ;-) Andre' -- André Pönitz . [EMAIL PROTECTED]

Re: Export A.B.lyx in postscript gives A.ps

2000-02-03 Thread Etienne Grossmann
Hello, I just tried your patch, and it seems to work. But I couldn't get to try it with /this.is.a/trickyfilename because lyx won't let me load a file without a .lyx suffix. Silly question, what is that string::npos? Too bad your patch didn't make it to 1.1.4; it will be for 1.1.5. C

Re: Export A.B.lyx in postscript gives A.ps

2000-02-02 Thread Asger K. Alstrup Nielsen
> string ChangeExtension(string const & oldname, string const & extension, > bool no_path) > { > string::size_type last_slash = oldname.rfind('/'); > string::size_type last_dot; This is fine. > if (last_slash != string::npos) > last_dot = o