+ before trying to write out snapshot image check if it's null

This commit is contained in:
wmayer
2015-05-07 23:07:20 +02:00
parent c4cdfec855
commit 15de65eb71
2 changed files with 11 additions and 3 deletions

View File

@@ -899,7 +899,7 @@ void View3DInventorViewer::savePicture(int w, int h, const QColor& bg, QImage& i
#if (COIN_MAJOR_VERSION >= 4)
// The behaviour in Coin4 has changed so that when using the same instance of 'SoFCOffscreenRenderer'
// multiple times internally the biggest viewport size is stored and set to the SoGLRenderAction.
// The trick is to add a callback node and override the viewport size with wath we want.
// The trick is to add a callback node and override the viewport size with what we want.
//SoCallback* cbvp = new SoCallback;
//cbvp->setCallback(setViewportCB);
//root->addChild(cbvp);