git-svn-id: svn://db.shs.com.ru/libs@306 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "graphic.h"
|
||||
#include "qad_types.h"
|
||||
#include "ui_graphic.h"
|
||||
#include "ui_graphic_conf.h"
|
||||
#if QT_VERSION >= 0x050100
|
||||
@@ -204,7 +205,7 @@ void Graphic::canvasPaintEvent() {
|
||||
font_sz = fontMetrics().size(0, "0");
|
||||
font_sz.setHeight(font_sz.height() * 1.);
|
||||
font_sz.setWidth(font_sz.width() * 8);
|
||||
thick = qMax<int>(qRound(font_sz.height() / 15.), 1);
|
||||
thick = lineThickness();
|
||||
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);
|
||||
if (bufferActive) {
|
||||
|
||||
Reference in New Issue
Block a user