Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbf61aa
)
extras/HTMLView: Fixed crashes on failed load
author
Jerome St-Louis
<jerome@ecere.com>
Fri, 30 Aug 2013 09:01:35 +0000
(
05:01
-0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Fri, 30 Aug 2013 09:01:35 +0000
(
05:01
-0400)
extras/html/HTMLView.ec
patch
|
blob
|
history
diff --git
a/extras/html/HTMLView.ec
b/extras/html/HTMLView.ec
index
f763f16
..
637afa5
100644
(file)
--- a/
extras/html/HTMLView.ec
+++ b/
extras/html/HTMLView.ec
@@
-379,7
+379,8
@@
class HTMLView : Window
int maxH = height - BOTTOM_MARGIN;
int h = 0;
- surface.TextFont(html.defaultFont.font.font);
+ if(html.defaultFont.font)
+ surface.TextFont(html.defaultFont.font.font);
while(block)
{
Block nextBlock;
@@
-645,7
+646,8
@@
class HTMLView : Window
Surface surface = display.GetSurface(0,0,null);
if(surface)
{
- surface.TextFont(html.defaultFont.font.font);
+ if(html.defaultFont.font)
+ surface.TextFont(html.defaultFont.font.font);
for(;block;)
{
Block nextBlock;