1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0027291: Command File->New crashes Import Export Qt sample on Linux

Crash on Qt 4.8.6 was fixed.
This commit is contained in:
ski 2016-03-25 12:34:28 +03:00 committed by bugmaster
parent 2a11138ffe
commit a722bd5548

View File

@ -16,6 +16,10 @@
#include <QRubberBand>
#include <QMdiSubWindow>
#include <QStyleFactory>
#if !defined(_WIN32) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX)) && QT_VERSION < 0x050000
#include <QX11Info>
#endif
#include <Graphic3d_ExportFormat.hxx>
#include <Graphic3d_GraphicDriver.hxx>
@ -50,6 +54,9 @@ View::View( Handle(AIS_InteractiveContext) theContext, QWidget* parent )
myRaytraceActions( 0 ),
myBackMenu( NULL )
{
#if !defined(_WIN32) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX)) && QT_VERSION < 0x050000
XSynchronize(x11Info().display(),true);
#endif
myContext = theContext;
myXmin = 0;