]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetGraphics.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetGraphics.cpp
index af89ebb415bd03a4202a6d8cee71d90a929cbf51..ec085707b4e15de8179e4ac3e24f047c9150f3a0 100644 (file)
@@ -223,6 +223,7 @@ void InsetGraphics::doDispatch(Cursor & cur, FuncRequest & cmd)
                break;
 
        case LFUN_GRAPHICS_RELOAD:
+               params_.filename.refresh();
                graphic_->reload();
                break;
 
@@ -950,7 +951,7 @@ docstring InsetGraphics::xhtml(XHTMLStream & xs, OutputParams const & op) const
                        << params().filename << "' for output. File missing?");
                string const attr = "src='" + params().filename.absFilename() 
                                    + "' alt='image: " + output_file + "'";
-               xs << CompTag("img", attr);
+               xs << html::CompTag("img", attr);
                return docstring();
        }
 
@@ -960,7 +961,7 @@ docstring InsetGraphics::xhtml(XHTMLStream & xs, OutputParams const & op) const
        // Speaking of which: Do the cropping, rotating, etc.
        string const attr = "src='" + output_file + "' alt='image: " 
                            + output_file + "'";
-       xs << CompTag("img", attr);
+       xs << html::CompTag("img", attr);
        return docstring();
 }