diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-07-17 13:38:37 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-07-17 13:38:37 -0600 |
commit | 5224b2220ada479a416f26c73ee5a72f1b78be3a (patch) | |
tree | d36ec0adcb74dfc75a5c60620787d477951596d0 /NxWidgets/libnxwidgets/src | |
parent | bba0b13f8057a52ff6d341482c89dd965d65ac40 (diff) | |
download | px4-nuttx-5224b2220ada479a416f26c73ee5a72f1b78be3a.tar.gz px4-nuttx-5224b2220ada479a416f26c73ee5a72f1b78be3a.tar.bz2 px4-nuttx-5224b2220ada479a416f26c73ee5a72f1b78be3a.zip |
NxWM::CApplicationWindow: Created the custom font for the toolbar title, but never used it.
Diffstat (limited to 'NxWidgets/libnxwidgets/src')
-rw-r--r-- | NxWidgets/libnxwidgets/src/clabel.cxx | 2 | ||||
-rw-r--r-- | NxWidgets/libnxwidgets/src/cnxwidget.cxx | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/NxWidgets/libnxwidgets/src/clabel.cxx b/NxWidgets/libnxwidgets/src/clabel.cxx index 319b707b6..f9132c3c2 100644 --- a/NxWidgets/libnxwidgets/src/clabel.cxx +++ b/NxWidgets/libnxwidgets/src/clabel.cxx @@ -252,6 +252,8 @@ void CLabel::getPreferredDimensions(CRect &rect) const * Sets the font. * * @param font A pointer to the font to use. + * + * NOTE: This font is not deleted when the widget is destroyed! */ void CLabel::setFont(CNxFont *font) diff --git a/NxWidgets/libnxwidgets/src/cnxwidget.cxx b/NxWidgets/libnxwidgets/src/cnxwidget.cxx index 6d6ddb7b8..5060e42c2 100644 --- a/NxWidgets/libnxwidgets/src/cnxwidget.cxx +++ b/NxWidgets/libnxwidgets/src/cnxwidget.cxx @@ -466,6 +466,8 @@ void CNxWidget::setBorderless(bool borderless) * Sets the font. * * @param font A pointer to the font to use. + * + * NOTE: This font is not deleted when the widget is destroyed! */ void CNxWidget::setFont(CNxFont *font) @@ -1408,6 +1410,7 @@ const CNxWidget *CNxWidget::getChild(int index) const { return m_children[index]; } + return (CNxWidget *)NULL; } |