git-svn-id: svn://db.shs.com.ru/libs@427 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2018-09-24 09:24:40 +00:00
parent 347eaa679e
commit af1d5daef8
2 changed files with 7 additions and 1 deletions

View File

@@ -1459,7 +1459,10 @@ void Graphic::updateLegend(bool es) {
QPixmap pix(60, 22);
pix.fill(back_color);
QPainter p(&pix);
p.setPen(graphics[i].pen);
QPen pen = graphics[i].pen;
if (qRound(pen.widthF()) == pen.widthF()) pen.setWidth(pen.width()*thick);
else pen.setWidthF(pen.widthF()*thick);
p.setPen(pen);
p.drawLine(0, pix.height() / 2, pix.width(), pix.height() / 2);
p.end();
graphics[i].icon = QIcon(pix);