diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-03-23 00:31:55 +0100 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-03-23 00:31:55 +0100 |
| commit | 010ff656ec07201a811571830de04bfa2c85676a (patch) | |
| tree | a5a61afe3983b42d1a2b5abeb425c3b3520d7dc2 | |
| parent | 53ce0ea2f42372971a357e5d0b455ae5cd2a3ca9 (diff) | |
| download | enigma2-010ff656ec07201a811571830de04bfa2c85676a.tar.gz enigma2-010ff656ec07201a811571830de04bfa2c85676a.zip | |
add some debug assertions
| -rw-r--r-- | lib/gdi/font.cpp | 7 |
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)); |
