Commit 30a85d2d authored by Jan Möbius's avatar Jan Möbius

Fixed bad snapshot commit

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12366 383ad7c9-94d9-4d36-a494-682f7c89f535
parent daa4a94f
......@@ -687,11 +687,11 @@ void CoreWidget::viewerSnapshot() {
examiner_widgets_[0]->snapshot(img[0]);
examiner_widgets_[1]->snapshot(img[1]);
QImage finalImage(img[0].width() + img[1].width() +2, img[0].height(), QImage::Format_ARGB32_Premultiplied);
QImage* finalImage = new QImage(img[0].width() + img[1].width() +2, img[0].height(), QImage::Format_ARGB32_Premultiplied);
QPainter painter(&finalImage);
QPainter painter(finalImage);
painter.fillRect(0,0,finalImage.width(), finalImage.height(), QBrush(Qt::gray));
painter.fillRect(0,0,finalImage->width(), finalImage->height(), QBrush(Qt::gray));
painter.drawImage(QRectF( 0, 0, img[0].width(), img[0].height()),img[0],
QRectF( 0, 0, img[0].width(), img[0].height()) );
......
......@@ -191,7 +191,7 @@ glViewer* QtGLGraphicsScene::findView (const QPointF &_p, bool _setActive)
{
if (_setActive && PluginFunctions::activeExaminer() != i)
{
PluginFunctions::setActiveExaminer (i);
PluginFunctions::setActiveExaminer(i);
update();
}
return views_->at(i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment