namespace lyx {
namespace frontend {
+
+const float Painter::thin_line = 0.0;
GuiPainter::GuiPainter(QPaintDevice * device)
: QPainter(device), Painter(),
// new QPainter has default QPen:
current_color_ = guiApp->colorCache().get(Color_black);
current_ls_ = line_solid;
- current_lw_ = 0.5;
+ current_lw_ = thin_line;
}
case line_onoffdash: pen.setStyle(Qt::DotLine); break;
}
- pen.setWidth(lw);
+ pen.setWidthF(lw);
setPen(pen);
}