r24480 by jghali - Fix compiler warning
scribus-commit
scribus-commit at lists.scribus.net
Sun Feb 14 14:07:05 UTC 2021
Author: jghali
Date: Sun Feb 14 14:07:05 2021
New Revision: 24480
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24480
Log:
Fix compiler warning
Modified:
trunk/Scribus/scribus/fonts/scface_ttf.cpp
Modified: trunk/Scribus/scribus/fonts/scface_ttf.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24480&path=/trunk/Scribus/scribus/fonts/scface_ttf.cpp
==============================================================================
--- trunk/Scribus/scribus/fonts/scface_ttf.cpp (original)
+++ trunk/Scribus/scribus/fonts/scface_ttf.cpp Sun Feb 14 14:07:05 2021
@@ -10,6 +10,7 @@
#include <QObject>
#include <QDebug>
+#include <limits>
#include <sys/types.h>
#include "fonts/scface_ttf.h"
@@ -86,7 +87,7 @@
return FtFace::glyphNames(glyphList);
// qDebug() << "reading metrics for" << face->family_name << face->style_name;
- int spaceGlyphIndex = -1;
+ FT_UInt spaceGlyphIndex = std::numeric_limits<FT_UInt>::max();
charcode = FT_Get_First_Char(face, &gindex);
while (gindex != 0)
More information about the scribus-commit
mailing list