]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSeparator.cpp
Revert "Do not crash is release mode if we stumble across an unrealized font."
[lyx.git] / src / insets / InsetSeparator.cpp
index a759f1f3955f893efba50eab35fed1c4f7421b63..9beda1d0cf80befe67db10ea2a4650e10d22a7f1 100644 (file)
@@ -20,6 +20,7 @@
 #include "MetricsInfo.h"
 #include "OutputParams.h"
 #include "output_xhtml.h"
+#include "texstream.h"
 
 #include "frontends/Application.h"
 #include "frontends/FontMetrics.h"
@@ -210,7 +211,7 @@ void InsetSeparator::draw(PainterInfo & pi, int x, int y) const
                pi.pain.lines(xp, yp, 2, ColorName());
 
                if (params_.kind == InsetSeparatorParams::PARBREAK) {
-                       yp[0] += 0.25 * asc * 0.75;
+                       yp[0] += int(0.25 * asc * 0.75);
                        yp[1] = yp[0];
                        pi.pain.lines(xp, yp, 2, ColorName());
                }