From ffd98768ba3777b8b0fddd5b730d01c6dee7fea1 Mon Sep 17 00:00:00 2001 From: George Tasker Date: Sun, 10 Jun 2001 17:01:25 +0000 Subject: [PATCH] Initialized m_startint in the constructor to avoid cloning of uninitialized value git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/gridctrl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generic/gridctrl.cpp b/src/generic/gridctrl.cpp index a6f8f58b80..ddd9793285 100644 --- a/src/generic/gridctrl.cpp +++ b/src/generic/gridctrl.cpp @@ -215,6 +215,8 @@ void wxGridCellEnumRenderer::SetParameters(const wxString& params) wxGridCellEnumEditor::wxGridCellEnumEditor(const wxString& choices) : wxGridCellChoiceEditor() { + m_startint = -1; + if (!choices.IsEmpty()) SetParameters(choices); } -- 2.45.2