summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets
diff options
context:
space:
mode:
Diffstat (limited to 'NxWidgets/libnxwidgets')
-rw-r--r--NxWidgets/libnxwidgets/src/cnxtkwindow.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/NxWidgets/libnxwidgets/src/cnxtkwindow.cxx b/NxWidgets/libnxwidgets/src/cnxtkwindow.cxx
index 520896fa2..8b880a618 100644
--- a/NxWidgets/libnxwidgets/src/cnxtkwindow.cxx
+++ b/NxWidgets/libnxwidgets/src/cnxtkwindow.cxx
@@ -66,9 +66,18 @@ using namespace NXWidgets;
*/
CNxTkWindow::CNxTkWindow(NXHANDLE hNxServer, CWidgetControl *pWidgetControl)
- : CCallback(pWidgetControl), m_hNxServer(hNxServer), m_hNxTkWindow(0),
- m_widgetControl(pWidgetControl)
+ : CCallback(pWidgetControl)
{
+ // Save construction values
+
+ m_hNxServer = hNxServer;
+ m_widgetControl = pWidgetControl;
+
+ // Nullify uninitilized pointers
+
+ m_hNxTkWindow = (NXTKWINDOW )0;
+ m_toolbar = (CNxToolbar *)0;
+
// Create the CGraphicsPort instance for this window
m_widgetControl->createGraphicsPort(static_cast<INxWindow*>(this));