diff --git a/src/frontends/qt4/GuiPainter.cpp b/src/frontends/qt4/GuiPainter.cpp index ab607ee519..0df30a2c94 100644 --- a/src/frontends/qt4/GuiPainter.cpp +++ b/src/frontends/qt4/GuiPainter.cpp @@ -83,7 +83,7 @@ void GuiPainter::setQPainterPen(QColor const & col, case line_onoffdash: pen.setStyle(Qt::DotLine); break; } - pen.setWidth((int)lw); + pen.setWidthF(lw); setPen(pen); }