Angus Leeming <[EMAIL PROTECTED]> writes:
| if (c == LyXParagraph::META_INSET) {
| Inset const * tmpinset = row->par()->GetInset(pos);
| if (tmpinset) {
| tmpinset->draw(bview, font, offset+row->baseline(), x,
| cleared);
| }
| ...
| }
|
| It seems that this is a good place to check the contents of the inset and if
| empty to remove it.
No, if empty (cancelled) it should not have been inserted in the first
place.
What you need to to is to separate the inset dialog from the inset,
sot that you can call the dialog first and create the inset on basis
of information entered there. Then you will now if it is ok to insert
the inset in the first place.
Lgb