ports/cad/meshlab/files/patch-meshlab_mainwindow_RunTime.cpp
Pietro Cerutti 4532f38559 - Fix run-time segmentation fault [1]
- Convert to new LIB_DEPENDS format
- Fix build with clang (no longer depends on GCC)
- Statically link against own library libcommon.a, to avoid
  installing a library with such a generic name as libcommon.so

PR:		183474 [1]
Submitted by:	Pierre Smars <smars@yuntech.edu.tw> [1]
2013-10-31 17:19:27 +00:00

13 lines
615 B
C++

--- meshlab/mainwindow_RunTime.cpp.orig 2013-10-31 16:02:53.000000000 +0100
+++ meshlab/mainwindow_RunTime.cpp 2013-10-31 16:04:13.000000000 +0100
@@ -1575,7 +1575,9 @@
/*********WARNING!!!!!! CHANGE IT!!! ALSO IN THE OPENPROJECT FUNCTION********/
meshDoc()->setDocLabel(fileName);
- mdiarea->activeSubWindow()->setWindowTitle(meshDoc()->docLabel());
+ if (mdiarea->activeSubWindow()) {
+ mdiarea->activeSubWindow()->setWindowTitle(meshDoc()->docLabel());
+ }
layerDialog->setWindowTitle(meshDoc()->docLabel());
/****************************************************************************/