On Friday 16 August 2002 4:18 pm, John Levon wrote:
> On Fri, Aug 16, 2002 at 10:02:17AM +0100, Angus Leeming wrote:
> > > around this maze right now
> >
> > I thought this code was now really easy to follow :-(
>
> it probably is ! I only spent ten minutes... I just can't work out where
> we are trying to display some non-existent file

You mean load a file that doesn't exist?

GraphicsCacheItem.C:
void CacheItem::Impl::loadImage()
{
        setStatus(Loading);
        lyxerr[Debug::GRAPHICS] << "Loading image." << endl;

        image_ = Image::newImage();

        cl_.disconnect();
        cl_ = image_->finishedLoading.connect(
                boost::bind(&Impl::imageLoaded, this, _1));
        image_->load(file_to_load_);
}

So you should be looking at the load() method in one of
        GraphicsImageXPM.C
        xformsImage.C
        QLImage.C

and add an if (!FileExists()) check.

Angus

Reply via email to