[LyX/master] add comment
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Sat Jul 15 12:07:33 UTC 2023
commit 582eb7cc03953c85ac8888b76f24867feac33d90
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Sat Jul 15 15:20:28 2023 +0200
add comment
---
src/insets/InsetSpecialChar.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp
index 5983c07..f930ed7 100644
--- a/src/insets/InsetSpecialChar.cpp
+++ b/src/insets/InsetSpecialChar.cpp
@@ -243,6 +243,8 @@ void InsetSpecialChar::metrics(MetricsInfo & mi, Dimension & dim) const
frontend::NullPainter np;
PainterInfo pi(mi.base.bv, np);
pi.base.font = mi.base.font;
+ // We rely on the fact that drawLogo updates x to compute
+ // the width without code duplication.
drawLogo(pi, dim.wid, 0, kind_);
break;
}
More information about the lyx-cvs
mailing list