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-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 +++

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-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 +++

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 patch? The

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

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-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 patch?

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

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

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.

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.

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]

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

2000-02-01 Thread etienne grossmann
... which may cause problems if I also have a file name A.C.lyx Hello, is that a bug? Could it have to do with the following code at yx-1.1.4pre2/src/support/filetools.C:903 == string ChangeExtension(string const

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

2000-02-01 Thread etienne grossmann
... which may cause problems if I also have a file name A.C.lyx Hello, is that a bug? Could it have to do with the following code at yx-1.1.4pre2/src/support/filetools.C:903 == string ChangeExtension(string const &