diff --git a/src/meshlab/mainwindow.h b/src/meshlab/mainwindow.h index ef51b4084..ff960b027 100644 --- a/src/meshlab/mainwindow.h +++ b/src/meshlab/mainwindow.h @@ -76,7 +76,7 @@ public slots: void delCurrentRaster(); void endEdit(); void updateCustomSettings(); - void updateDocumentScriptBindings() {PM.updateDocumentScriptBindings(*meshDoc());}; + void updateDocumentScriptBindings() {if(currentViewContainer()) PM.updateDocumentScriptBindings(*meshDoc());}; private slots: