Ticket #53427: patch-cpp11-narrowing-error.diff

File patch-cpp11-narrowing-error.diff, 505 bytes (added by RJVB (René Bertin), 7 years ago)
  • modules/highgui/src/window_QT.cpp

    old new  
    103103    float       dx;//spacing letter in Qt (0 default) in pixel
    104104    int         line_type;//<- pointSize in Qt
    105105    */
    106     CvFont f = {nameFont,color,style,NULL,NULL,NULL,0,0,0,weight,spacing,pointSize};
     106    CvFont f = {nameFont,color,style,NULL,NULL,NULL,0,0,0,weight,static_cast<float>(spacing),pointSize};
    107107    return f;
    108108}
    109109