git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
53ce0ea
)
add some debug assertions
author
Felix Domke
<tmbinc@elitedvb.net>
Sun, 22 Mar 2009 23:31:55 +0000
(
00:31
+0100)
committer
Felix Domke
<tmbinc@elitedvb.net>
Sun, 22 Mar 2009 23:31:55 +0000
(
00:31
+0100)
lib/gdi/font.cpp
patch
|
blob
|
history
diff --git
a/lib/gdi/font.cpp
b/lib/gdi/font.cpp
index 450269f00686c9be22545ac8a47f6400e0b556ec..6a6007eebfb35f923f8b20cf7a4bcac167d4cf10 100644
(file)
--- 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_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));
if (cursor.y()==-1)
{
cursor=ePoint(area.x(), area.y()+(current_face->size->metrics.ascender>>6));