From df9cfd3720ba8e2c315c232a341ca2a98052c9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Tue, 13 Oct 2015 11:39:55 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@38 a8b55f48-bf90-11e4-a774-851b48703e85 --- qad_graphic/graphic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;