"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 )
|
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
+++
"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 )
| >
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
+++
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
> 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
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
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?
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
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
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.
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]
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.
> 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]
... 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
... 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 &
16 matches
Mail list logo