On 10/26/2010 02:40 AM, Uwe Stöhr wrote:
In order to fix http://www.lyx.org/trac/ticket/6585 I need to check in
InsetTabular if the table is inside a float.
i thought I can do this by iterating the insets starting with the
table inset down to the outer insets. if one of the outer insets is a
float I thought that I can say that the table is inside it. Attached
is a patch where I tried this with out success.
Can anybody give me a pointer what I am doing wrong?
You are going forward... you should go backward. Also cur.inset() is
'this' really. But I don't like use of InsetIterator in this case. You
can just use the Cursor starting at position 0...
Abdel.