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 prevent Qt6 from defining UNICODE (Qt6.1.1 and upwards) 2021-06-19 10:48:49 +02:00
epstools.cpp Include standard <regex> 2020-11-29 15:27:28 +02:00
epstools.h
GraphicsCache.cpp Cleanup included headers 2020-11-29 00:25:14 +02:00
GraphicsCache.h
GraphicsCacheItem.cpp Replace calls from make_unique to lyx::make_unique 2021-01-15 11:36:14 +01:00
GraphicsCacheItem.h Merge namespace signals2 into namespace lyx 2020-12-19 22:52:51 +02:00
GraphicsConverter.cpp Merge namespace signals2 into namespace lyx 2020-12-19 22:52:51 +02:00
GraphicsConverter.h Merge namespace signals2 into namespace lyx 2020-12-19 22:52:51 +02:00
GraphicsImage.h
GraphicsLoader.cpp Avoid null pointer dereference 2022-02-20 17:09:49 +01:00
GraphicsLoader.h Merge namespace signals2 into namespace lyx 2020-12-19 22:52:51 +02:00
GraphicsParams.cpp
GraphicsParams.h
GraphicsTypes.h
PreviewImage.cpp Use iround function, amend c0ce79452f 2020-11-27 12:16:50 +02:00
PreviewImage.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
PreviewLoader.cpp Fix previews in yellow notes and disabled branches 2023-12-19 17:56:18 +01:00
PreviewLoader.h Merge namespace signals2 into namespace lyx 2020-12-19 22:52:51 +02:00