]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/timectrlg.cpp
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / generic / timectrlg.cpp
index 6a5d13c6cf940446916f74eda1d36089fa4f1c1f..f6aaa2317eb6beef1a53ff1d72a3a02c132e642e 100644 (file)
@@ -270,7 +270,7 @@ private:
 
     void OnTextClick(wxMouseEvent& event)
     {
-        Field field wxDUMMY_INITIALIZE(Field_Max);
+        Field field = Field_Max; // Initialize just to suppress warnings.
         long pos;
         switch ( m_text->HitTest(event.GetPosition(), &pos) )
         {