Commit cb345001 authored by Martin Schultz's avatar Martin Schultz

Update OpenFlipper.cc

Added width specifier to format.
parent 8f34815c
......@@ -311,7 +311,7 @@ bool parseCommandLineOptions(CSimpleOpt& args){
#ifndef __APPLE__
//workaround for bug with stereo mode on Qt5.7.0 and Qt5.7.1 on Linux
int QtVersionMajor, QtVersionMinor, QtVersionPatch;
if(sscanf(qVersion(),"%d.%d.%d",&QtVersionMajor, &QtVersionMinor, &QtVersionPatch) == 3)
if(sscanf(qVersion(),"%1d.%1d.%1d",&QtVersionMajor, &QtVersionMinor, &QtVersionPatch) == 3)
{
if(QtVersionMajor == 5 && QtVersionMinor >= 7)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment