]> git.lyx.org Git - lyx.git/blobdiff - src/insets/RenderGraphic.cpp
Make undo action no-ops when the buffer is read-only
[lyx.git] / src / insets / RenderGraphic.cpp
index 280a657ceb61ac0490c48230bddaec5046518937..318f8aab0d7507aedf23f163c0bd5ba332306e60 100644 (file)
@@ -187,7 +187,7 @@ void RenderGraphic::metrics(MetricsInfo & mi, Dimension & dim) const
 }
 
 
-void RenderGraphic::draw(PainterInfo & pi, int x, int y) const
+void RenderGraphic::draw(PainterInfo & pi, int x, int y, bool const darkmode) const
 {
        // This will draw the graphics. If the graphics has not been
        // loaded yet, we draw just a rectangle.
@@ -197,7 +197,7 @@ void RenderGraphic::draw(PainterInfo & pi, int x, int y) const
        int const h = dim_.height();
 
        if (displayGraphic(params_) && readyToDisplay(loader_))
-               pi.pain.image(x1, y1, w, h, *loader_.image());
+               pi.pain.image(x1, y1, w, h, *loader_.image(), darkmode);
 
        else {
                Color c = pi.change.changed() ? pi.change.color() : Color_foreground;