mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
removed crash happening with split screen.
This commit is contained in:
parent
3603dbda8b
commit
3c9f050e9c
@ -1664,4 +1664,15 @@ void GLArea::createOrthoView(QString dir)
|
||||
loadShot(shotAndScale);
|
||||
}
|
||||
|
||||
MultiViewer_Container * GLArea::mvc()
|
||||
{
|
||||
Splitter * parentSplitter = qobject_cast<Splitter *>(parent());
|
||||
MultiViewer_Container* mvc = qobject_cast<MultiViewer_Container *>(parentSplitter);
|
||||
while(!mvc)
|
||||
{
|
||||
parentSplitter = qobject_cast<Splitter *>(parentSplitter->parent());
|
||||
mvc= qobject_cast<MultiViewer_Container *>(parentSplitter);
|
||||
}
|
||||
return mvc;
|
||||
}
|
||||
|
||||
|
||||
@ -88,11 +88,7 @@ public:
|
||||
|
||||
// Layer Management stuff.
|
||||
|
||||
MultiViewer_Container *mvc()
|
||||
{
|
||||
MultiViewer_Container *localMVC = reinterpret_cast<MultiViewer_Container *>(this->parent());
|
||||
return localMVC;
|
||||
}
|
||||
MultiViewer_Container *mvc();
|
||||
|
||||
MeshModel *mm(){ return mvc()->meshDoc.mm();}
|
||||
inline MeshDocument *md() {return &(mvc()->meshDoc);}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user