Abdelrazak Younes wrote:
Yes, rather than fixing the symptom we should fix the origin of the
problem.
afaics, every time we contruct a painter:
QPainter qp(qwa_->paintDevice());
we get the default pen:
The default pen is a solid black brush with 0 width, square cap style
(Qt::SquareCap), and bevel join style (Qt::BevelJoin).
so it seems that there is no point in storing these:
LColor::color current_color_;
Painter::line_style current_ls_;
Painter::line_width current_lw_;
unless we reset them when creating a painter
not sure what the best "fix" is though
we could check for default values instead at the beginning of
setQPainterPen, but this seems a bit fragile
another possibility is to check for current pen settings
ideas?