]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetText.cpp
Change label "Show Zoom" to "Show Zoom Value"
[features.git] / src / insets / InsetText.cpp
index 626818c607e3012378120c022336a1aa9771c48e..a4521848c310f280d9a0cbb6c9a42fdc9bf2ba75 100644 (file)
@@ -664,6 +664,8 @@ void InsetText::docbookRenderAsImage(XMLStream & xs, OutputParams const & rp, XH
        // TODO: no real support for Unicode. This code is very similar to RenderPreview::addPreview, the same gotcha applies.
 
        graphics::PreviewLoader* loader = buffer().loader();
+       // This should be OK because we are exporting
+       LASSERT(loader != nullptr, return);
        loader->add(snippet);
        loader->startLoading(true); // Generate the image and wait until done.
        graphics::PreviewImage const * img = loader->preview(snippet);