mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Do not presume what the defaults for a new QPainter are
This commit is contained in:
parent
6532e5104d
commit
275d306c73
@ -52,10 +52,10 @@ GuiPainter::GuiPainter(QPaintDevice * device, double pixel_ratio)
|
|||||||
: QPainter(device), Painter(pixel_ratio),
|
: QPainter(device), Painter(pixel_ratio),
|
||||||
use_pixmap_cache_(lyxrc.use_pixmap_cache && USE_PIXMAP_CACHE)
|
use_pixmap_cache_(lyxrc.use_pixmap_cache && USE_PIXMAP_CACHE)
|
||||||
{
|
{
|
||||||
// new QPainter has default QPen:
|
// set cache correctly
|
||||||
current_color_ = guiApp->colorCache().get(Color_black);
|
current_color_ = pen().color();
|
||||||
current_ls_ = line_solid;
|
current_ls_ = pen().style() == Qt::DotLine ? line_onoffdash : line_solid;
|
||||||
current_lw_ = thin_line;
|
current_lw_ = pen().width();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user