[fondue-commits] [SCM] Fondue Font Editor branch, master, updated. 5cc9eb8f76a1df337ba56cb84d154473358c00fe
Eugeniy Meshcheryakov
eugen at debian.org
Wed Apr 2 14:09:31 UTC 2008
The following commit has been merged in the master branch:
commit 5cc9eb8f76a1df337ba56cb84d154473358c00fe
Author: Eugeniy Meshcheryakov <eugen at debian.org>
Date: Wed Apr 2 16:09:07 2008 +0200
add ASSERT to avoid segmentation fault
diff --git a/nongui/glyph.cxx b/nongui/glyph.cxx
index 4d35d72..4b6ef95 100644
--- a/nongui/glyph.cxx
+++ b/nongui/glyph.cxx
@@ -295,6 +295,7 @@ bool Glyph::computeMetrics(qreal &xMin, qreal &xMax, qreal &yMin, qreal &yMax) c
return false;
}
const GlyphContour *c = qobject_cast<const GlyphContour *>(content().at(0));
+ Q_ASSERT(c);
if (c->points().isEmpty())
return false; // empty contours are not allowed
xMin = xMax = c->points().at(0).x();
--
Fondue Font Editor
More information about the fondue-commits
mailing list