diff --git a/qad_graphic/graphic.cpp b/qad_graphic/graphic.cpp index 77b98ee..2322e83 100644 --- a/qad_graphic/graphic.cpp +++ b/qad_graphic/graphic.cpp @@ -192,7 +192,7 @@ void Graphic::canvasPaintEvent(QPaintEvent * ) { lasth = hei; font_sz = fontMetrics().size(0, "0"); font_sz.setHeight(font_sz.height() * 1.); - font_sz.setWidth(font_sz.width() * 7); + font_sz.setWidth(font_sz.width() * 8); thick = qMax(qRound(font_sz.height() / 15.), 1); if (buffer != 0) if (buffer->width() != wid || buffer->height() != hei) {delete buffer; buffer = 0;} if (buffer == 0) buffer = new QImage(wid, hei, QImage::Format_RGB32); @@ -854,7 +854,7 @@ void Graphic::drawGrid() { cx = gbx - 5; grid_pen.setWidth(qMax(qRound(thick / 1.4), 1)); QFont nf = font(), sf = font(); - sf.setPointSizeF(sf.pointSizeF() / 1.6); + sf.setPointSizeF(qMax(sf.pointSizeF() / 1.6, 7.)); QFontMetrics fm(nf), sfm(sf); if (step > 0.) { cnt = 1000;