Fixed python crash when both cv2.imshow and gtk module are used

This commit is contained in:
Maksim Shabunin 2015-05-07 16:44:45 +03:00
parent a31b29308f
commit 01c3d491e7

View File

@ -577,8 +577,8 @@ CV_IMPL int cvInitSystem( int argc, char** argv )
{
hg_windows = 0;
gtk_disable_setlocale();
gtk_init( &argc, &argv );
setlocale(LC_NUMERIC,"C");
#ifdef HAVE_OPENGL
gtk_gl_init(&argc, &argv);