aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gdi/font.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gdi/font.cpp b/lib/gdi/font.cpp
index 450269f0..6a6007ee 100644
--- a/lib/gdi/font.cpp
+++ b/lib/gdi/font.cpp
@@ -510,7 +510,12 @@ int eTextPara::renderString(const char *string, int rflags)
if (!current_font)
return -1;
-
+
+ if (!current_face)
+ eFatal("eTextPara::renderString: no current_face");
+ if (!current_face->size)
+ eFatal("eTextPara::renderString: no current_face->size");
+
if (cursor.y()==-1)
{
cursor=ePoint(area.x(), area.y()+(current_face->size->metrics.ascender>>6));