Merge pull request #3994 from mshabunin:fix-gtk-crash

This commit is contained in:
Vadim Pisarevsky
2015-05-12 15:11:07 +00:00

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);