]> git.lyx.org Git - lyx.git/commitdiff
add comment
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 15 Jul 2023 13:20:28 +0000 (15:20 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 15 Jul 2023 13:20:28 +0000 (15:20 +0200)
src/insets/InsetSpecialChar.cpp

index 5983c07d649906ad69c225ae005c2b8c2fa801a5..f930ed7b678451df0c9ed3d5575d88e7d35687ee 100644 (file)
@@ -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;
        }