Remove underline from tracked changes?

Pavel Sanda sanda at lyx.org
Fri Sep 24 10:18:53 UTC 2021


On Fri, Sep 24, 2021 at 10:59:38AM +0200, Rasmus K. Rendsvig wrote:
> In any case, then I would appreciate a word of advice at this juncture.

The attached patch does what you asked for, at least here.

Pavel
-------------- next part --------------
diff --git a/src/Changes.cpp b/src/Changes.cpp
index 6e3bf0fff7..7608d218c1 100644
--- a/src/Changes.cpp
+++ b/src/Changes.cpp
@@ -534,7 +534,7 @@ void Changes::updateBuffer(Buffer const & buf)
 void Change::paintCue(PainterInfo & pi, double const x1, double const y,
                       double const x2, FontInfo const & font) const
 {
-	if (!changed())
+	if (!changed() || inserted())
 		return;
 	// Calculate 1/3 height of font
 	FontMetrics const & fm = theFontMetrics(font);
@@ -561,6 +561,7 @@ void Change::paintCue(PainterInfo & pi, double const x1, double const y1,
 	case UNCHANGED:
 		return;
 	case INSERTED:
+		break;
 		pi.pain.line(int(x1), int(y2) + 1, int(x2), int(y2) + 1,
 		             color(), Painter::line_solid,
 		             pi.base.solidLineThickness());


More information about the lyx-devel mailing list