Fixed warning messages when starting Chalk. This resolves bug 1976.

pull/1/head
Michele Calgaro 10 years ago
parent ebea843b5c
commit 5d6fa0caf6

@ -154,7 +154,7 @@ TQWidget* KisToolBrush::createOptionWidget(TQWidget* parent)
m_chkDirect->setChecked(true);
connect(m_chkDirect, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(slotSetPaintingMode(int)));
m_optionLayout = new TQGridLayout(widget, 3, 2, 0, 6);
m_optionLayout = new TQGridLayout(NULL, 3, 2, 0, 6);
TQ_CHECK_PTR(m_optionLayout);
super::addOptionWidgetLayout(m_optionLayout);

@ -945,7 +945,7 @@ void KisView::updateTQPaintDeviceCanvas(const TQRect& imageRect)
TQPainter gc;
if (gc.begin(&m_canvasPixmap)) {
if (!m_canvasPixmap.isNull() && gc.begin(&m_canvasPixmap)) {
KisImageSP img = currentImg();

Loading…
Cancel
Save