commit 3040eb0fa2930ae117b9166217ddb8089997c5aa
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Jun 5 10:41:47 2024 +0200
Use background to make math comments more visible
---
src/mathed/InsetMathComment.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/mathed/InsetMathComment.cpp b/src/mathed/InsetMathComment.cpp
index 273253ec0e..2fdcde369e 100644
--- a/src/mathed/InsetMathComment.cpp
+++ b/src/mathed/InsetMathComment.cpp
@@ -16,6 +16,10 @@
#include "MathStream.h"
#include "MathSupport.h"
+#include "frontends/Painter.h"
+
+#include "MetricsInfo.h"
+
#include <ostream>
@@ -55,6 +59,8 @@ void InsetMathComment::metrics(MetricsInfo & mi, Dimension &
dim) const
void InsetMathComment::draw(PainterInfo & pi, int x, int y) const
{
+ Dimension const & dim = dimension(*pi.base.bv);
+ pi.pain.fillRectangle(x, y - dim.asc, dim.wid, dim.height(),
Color_notebg);
cell(0).draw(pi, x, y);
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs