Pavel Sanda wrote: > hi, > > while trying to add support for dia i encountered more strange problems. > after some investigation i found that these problems haven't been introduced > by my changes, but are already part of lyx. > > can anybody confirm those problems on independent latex setup? > > (0. have instant preview on and xfig installed) > 1. create new file > 2. insert->file->external material->xfig, enter some existing xfig image. > > problem #1: preview is not showed
please do i misunderstand something about inset creation or do we have buggy implementation of inset creation with instant preview? from my digging into http://bugzilla.lyx.org/show_bug.cgi?id=5626 it looks like that we create new eg. external inset (LFUN_INSET_INSERT), but before we add it to the paragraph we call the whole preload machinery inside the createInset which in turns try to validate the whole buffer to get required packages. but because the inset is not yet there, the we dont get needed ones for the inset and preview fails. pavel