>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> Ben Cazzolato <[EMAIL PROTECTED]> writes: | JM, | |
Lars> > Could you do something like | > | > frame 6 | > print
Lars> *(name.rep) | > | > I'd be interested to see what the string
Lars> from which the extension | > sought is. I suspect that rfind is
Lars> to blame, however. | | | (gdb) frame 6 | #6 0x81d3111 in
Lars> GetExtension (name=@0x84b3d18) at filetools.C:985 | 985 in
Lars> filetools.C | (gdb) print *(name.rep) | $1 = {sz = 0, ref =
Lars> 3019, res = 1, s = 0x836e988 ""} | (gdb)
Lars> I give GetExtension the blame...
Lars> | Does this help?
Lars> Yes, it seems that GetExtension cannot handle finding the
Lars> extension in an empty string.
In fact, it seems that lyxstring::rfind(char, size_type=npos) is to
blame (as you can see in the trace, it returns large values which are
not string::npos).
JMarc