Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SimpleGUI by
Revision 20:ef07d42ea062, committed 2016-10-18
- Comitter:
- elh
- Date:
- Tue Oct 18 19:43:15 2016 +0000
- Parent:
- 19:71dbf00c9159
- Commit message:
- Initialize Textwidgets _text to NULL preventing crash if widget is draw until a text was set.
Changed in this revision
Widgets/TextWidget.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 71dbf00c9159 -r ef07d42ea062 Widgets/TextWidget.cpp --- a/Widgets/TextWidget.cpp Sat Oct 08 15:37:12 2016 +0000 +++ b/Widgets/TextWidget.cpp Tue Oct 18 19:43:15 2016 +0000 @@ -6,6 +6,7 @@ **/ TextWidget::TextWidget(GraphicsContext *context) : Widget(context), + _text(NULL), _renderer(context->fontRenderer()), _font(context->defaultFont()), _halign(LEFT), _valign(TOP) @@ -14,6 +15,7 @@ TextWidget::TextWidget(GraphicsContext *context, FontRenderer* renderer) : Widget(context), + _text(NULL), _renderer(renderer), _font(context->defaultFont()), _halign(LEFT), _valign(TOP) @@ -22,6 +24,7 @@ TextWidget::TextWidget(GraphicsContext *context, FontRenderer* renderer, Font* font) : Widget(context), + _text(NULL), _renderer(renderer), _font(font), _halign(LEFT), _valign(TOP)