Pavel Sanda wrote:
> >> +          while (!from.empty() && from < to) {
> >> +                  Inset * inset = from.nextInset();
> >> +                  if (!inset)
> >> +                          break;
> >> +                  if (inset->lyxCode() == GRAPHICS_CODE) {
> >> +                          InsetGraphics * ig = inset->asInsetGraphics();
> > > +                         if (!ig)
> > > +                                 break;
> >
> > Contrary to what I told you to do, it seems that here asInsetGraphics 
> > already does the correct check. You can use:
> >                     InsetGraphics * ig = inset->asInsetGraphics();
> 
> I actually tried to get rid of that and got immediate crash.
> Can try again if there was some other interfering cause.

You were right, now it works, dunno what was broken in my testing before.

> Pavel

Reply via email to