+2003-02-25 John Levon <levon@movementarian.org>
+
+ * insetgraphicsParams.h:
+ * insetgraphics.C: don't start a load process if
+ the inset is set to NoDisplay (bug #920)
+
2003-02-22 John Levon <levon@movementarian.org>
* insetfloat.C:
switch (cache_->loader.status()) {
case grfx::WaitingToLoad:
- msg = _("Waiting for draw request to start loading...");
+ msg = _("Not shown.");
break;
case grfx::Loading:
msg = _("Loading...");
int old_x = int(x);
x += lwidth;
- if (cache_->loader.status() == grfx::WaitingToLoad)
+ grfx::Params const & gparams = params().as_grfxParams();
+
+ if (gparams.display != grfx::NoDisplay
+ && cache_->loader.status() == grfx::WaitingToLoad)
cache_->loader.startLoading(*this, *bv);
if (!cache_->loader.monitoring())
// Only a subset of InsetGraphicsParams is needed for display purposes.
// This function also interrogates lyxrc to ascertain whether
// to display or not.
- grfx::Params as_grfxParams(string const & filepath) const;
+ grfx::Params as_grfxParams(string const & filepath = string()) const;
private:
/// Initialize the object to a default status.