Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
486bc74
)
ecere/gui/DataBox: Fix crash on null 'data' from Form Designer
author
Jerome St-Louis
<jerome@ecere.com>
Tue, 17 Jun 2014 03:50:12 +0000
(23:50 -0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Tue, 17 Jun 2014 03:50:12 +0000
(23:50 -0400)
ecere/src/gui/controls/DataBox.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/controls/DataBox.ec
b/ecere/src/gui/controls/DataBox.ec
index
c2f733a
..
4e90f0c
100644
(file)
--- a/
ecere/src/gui/controls/DataBox.ec
+++ b/
ecere/src/gui/controls/DataBox.ec
@@
-147,7
+147,7
@@
private:
void OnRedraw(Surface surface)
{
- if(type && (!editor || !editor.created || editor.anchor.left)) // ColorDropBox lets part of the DataBox show
+ if(type &&
data &&
(!editor || !editor.created || editor.anchor.left)) // ColorDropBox lets part of the DataBox show
{
char tempString[1024];
if(type._vTbl[__ecereVMethodID_class_OnDisplay] == class(Instance)._vTbl[__ecereVMethodID_class_OnDisplay])