X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/501d97d4fe75b1919113cebc831c9a06fe356412..dea7e44a76e4e886f2bc60b0e82322a71b1f1f4f:/contrib/src/gizmos/ledctrl.cpp diff --git a/contrib/src/gizmos/ledctrl.cpp b/contrib/src/gizmos/ledctrl.cpp index c33d38e7ab..ffcd8ad150 100644 --- a/contrib/src/gizmos/ledctrl.cpp +++ b/contrib/src/gizmos/ledctrl.cpp @@ -66,7 +66,7 @@ wxLEDNumberCtrl::wxLEDNumberCtrl() m_DigitMargin(-1), m_LineLength(-1), m_LineWidth(-1), - m_DrawFaded(FALSE), + m_DrawFaded(false), m_LeftStartPos(-1) { } @@ -80,7 +80,7 @@ wxLEDNumberCtrl::wxLEDNumberCtrl(wxWindow *parent, wxWindowID id, m_DigitMargin(-1), m_LineLength(-1), m_LineWidth(-1), - m_DrawFaded(FALSE), + m_DrawFaded(false), m_LeftStartPos(-1) { Create(parent, id, pos, size, style); @@ -94,7 +94,7 @@ bool wxLEDNumberCtrl::Create(wxWindow *parent, wxWindowID id, bool RetVal = wxControl::Create(parent, id, pos, size, style); if ((style & wxLED_DRAW_FADED) != 0) - SetDrawFaded(TRUE); + SetDrawFaded(true); if ((style & wxLED_ALIGN_MASK) != 0) SetAlignment((wxLEDValueAlign)(style & wxLED_ALIGN_MASK)); @@ -113,7 +113,7 @@ void wxLEDNumberCtrl::SetAlignment(wxLEDValueAlign Alignment, bool Redraw) RecalcInternals(GetClientSize()); if (Redraw) - Refresh(FALSE); + Refresh(false); } } @@ -125,7 +125,7 @@ void wxLEDNumberCtrl::SetDrawFaded(bool DrawFaded, bool Redraw) m_DrawFaded = DrawFaded; if (Redraw) - Refresh(FALSE); + Refresh(false); } } @@ -134,6 +134,7 @@ void wxLEDNumberCtrl::SetValue(wxString const &Value, bool Redraw) { if (Value != m_Value) { +#ifdef __WXDEBUG__ if (!Value.IsEmpty()) { for(size_t i=0; i