]> git.lyx.org Git - features.git/commit
Mark insets with invalid buffer() in red in devel-mode.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 21 Oct 2019 14:45:03 +0000 (16:45 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:45 +0000 (15:48 +0200)
commit1866c042480b2275774c1348ede336b86818b9de
treeb19092f051ecbf1d4ec6a11da86d1aa94827968f
parent5d8d14d76489125b2775ecdb4c43cc2121e3761d
Mark insets with invalid buffer() in red in devel-mode.

We tend to have insets which buffer() member is invalid. To help
debugging, this commit paints their background in red when devel-mode
is on.

To this end, a new method develMode() is added to the Painter class.

With this commit, it is easy to see that macro template do not have a
proper buffer set!
src/MetricsInfo.cpp
src/frontends/NullPainter.h
src/frontends/Painter.h
src/frontends/qt/GuiPainter.cpp
src/frontends/qt/GuiPainter.h
src/frontends/qt/GuiWorkArea.cpp
src/mathed/MathRow.cpp