Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62738f1
)
ecere/gui/Window: Prevent crash on null interface driver in UpdateCaption()
author
Jerome St-Louis
<jerome@ecere.com>
Wed, 2 Apr 2014 05:09:43 +0000
(
01:09
-0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Wed, 2 Apr 2014 05:09:43 +0000
(
01:09
-0400)
ecere/src/gui/Window.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/Window.ec
b/ecere/src/gui/Window.ec
index
6437169
..
e7e051d
100644
(file)
--- a/
ecere/src/gui/Window.ec
+++ b/
ecere/src/gui/Window.ec
@@
-2440,7
+2440,8
@@
private:
{
char caption[2048];
FigureCaption(caption);
- guiApp.interfaceDriver.SetRootWindowCaption(this, caption);
+ if(guiApp.interfaceDriver)
+ guiApp.interfaceDriver.SetRootWindowCaption(this, caption);
}
UpdateDecorations();
if(parent)
@@
-2451,7
+2452,8
@@
private:
{
char caption[2048];
parent.FigureCaption(caption);
- guiApp.interfaceDriver.SetRootWindowCaption(parent, caption);
+ if(guiApp.interfaceDriver)
+ guiApp.interfaceDriver.SetRootWindowCaption(parent, caption);
}
else
parent.UpdateCaption();