mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +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:
parent
2a11138ffe
commit
a722bd5548
@ -16,6 +16,10 @@
|
|||||||
#include <QRubberBand>
|
#include <QRubberBand>
|
||||||
#include <QMdiSubWindow>
|
#include <QMdiSubWindow>
|
||||||
#include <QStyleFactory>
|
#include <QStyleFactory>
|
||||||
|
#if !defined(_WIN32) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX)) && QT_VERSION < 0x050000
|
||||||
|
#include <QX11Info>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <Graphic3d_ExportFormat.hxx>
|
#include <Graphic3d_ExportFormat.hxx>
|
||||||
#include <Graphic3d_GraphicDriver.hxx>
|
#include <Graphic3d_GraphicDriver.hxx>
|
||||||
@ -50,6 +54,9 @@ View::View( Handle(AIS_InteractiveContext) theContext, QWidget* parent )
|
|||||||
myRaytraceActions( 0 ),
|
myRaytraceActions( 0 ),
|
||||||
myBackMenu( NULL )
|
myBackMenu( NULL )
|
||||||
{
|
{
|
||||||
|
#if !defined(_WIN32) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX)) && QT_VERSION < 0x050000
|
||||||
|
XSynchronize(x11Info().display(),true);
|
||||||
|
#endif
|
||||||
myContext = theContext;
|
myContext = theContext;
|
||||||
|
|
||||||
myXmin = 0;
|
myXmin = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user