Hi Dekel,
        this bug is trigered by this piece

\begin_inset Figure size 288 178
file graphs/gridNtree-confReal2.eps
subcaption
flags 9

\end_inset

 and you search it as

        subcaptionText = get_value(lines, "subcaption", i+1, j)

  the problem is that get_value always expect to have a value to catch a value 
there

def get_value(lines, token, start, end = 0):
    i = find_token2(lines, token, start, end)
    if i == -1:
        return ""
    return string.split(lines[i])[1]

  Notice the [1] we are assuming that there are always 2 member. Is it ok to 
test for the presence of the second and if not present to return the empty 
string?

  I think that this is the right thing to do in get_value, at least.

  Closing this bug there aren't anymore lyx2lyx open bugs. :-)
-- 
José Abílio

Reply via email to