lyx_mirror/src/graphics
Jean-Marc Lasgouttes 2d5fa181a1 Fix previews in yellow notes and disabled branches
While it is not necessary to run validate() on insets that do not
produce output (yellow notes and disabled branches), it has to be done
for previewing, since a construct inside the inset may require some
support.

This is done in two steps:

1. in PreviewLoader::dumpPreamble, indicate that a preview is being
   prepared. It is not clear why the `for_preview' boolean was not set
   before.

2. in Inset(Branch|Note)::validate, always call the parent's validate
   method when previewing.

It should have been possible to move the code from 2. to
InsetText::validate, but the weird code in handling
InsetNoteParams::Comment in html makes it difficult.
2023-12-19 17:56:18 +01:00
..
CMakeLists.txt
epstools.cpp
epstools.h
GraphicsCache.cpp
GraphicsCache.h
GraphicsCacheItem.cpp
GraphicsCacheItem.h
GraphicsConverter.cpp
GraphicsConverter.h
GraphicsImage.h
GraphicsLoader.cpp Avoid null pointer dereference 2022-02-20 17:09:49 +01:00
GraphicsLoader.h
GraphicsParams.cpp
GraphicsParams.h
GraphicsTypes.h
PreviewImage.cpp
PreviewImage.h
PreviewLoader.cpp Fix previews in yellow notes and disabled branches 2023-12-19 17:56:18 +01:00
PreviewLoader.h