From 3bd03709fd146c9d97691f67f84f9eacca24bd6f Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 7 Mar 2020 07:28:37 +0100 Subject: [PATCH] Consider CT underlining pref in captions markup --- src/insets/InsetCaption.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetCaption.cpp b/src/insets/InsetCaption.cpp index 3f1aebf99e..32ead24679 100644 --- a/src/insets/InsetCaption.cpp +++ b/src/insets/InsetCaption.cpp @@ -25,6 +25,7 @@ #include "FuncStatus.h" #include "InsetList.h" #include "Language.h" +#include "LyXRC.h" #include "MetricsInfo.h" #include "output_latex.h" #include "output_xhtml.h" @@ -152,7 +153,7 @@ void InsetCaption::draw(PainterInfo & pi, int x, int y) const pi.base.font.setColor(pi.textColor(pi.base.font.color()).baseColor); if (is_deleted_) pi.base.font.setStrikeout(FONT_ON); - else if (isChanged()) + else if (isChanged() && lyxrc.ct_additions_underlined) pi.base.font.setUnderbar(FONT_ON); int const xx = x + leftOffset(pi.base.bv); pi.pain.text(xx, y, full_label_, pi.base.font);