From: Robin Dunn Date: Wed, 7 May 2003 18:08:01 +0000 (+0000) Subject: fixed compile errors X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b63fce942f8d195c42863f28ad41af750273fb47 fixed compile errors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index 5601ed1c2a..132921af93 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -605,13 +605,6 @@ public: Merged }; - enum wxAttrOverflowMode - { - Unset = -1, - Overflow, - SingleCell - }; - // ctors wxGridCellAttr(wxGridCellAttr *attrDefault = NULL) { @@ -675,7 +668,7 @@ public: bool HasRenderer() const { return m_renderer != NULL; } bool HasEditor() const { return m_editor != NULL; } bool HasReadWriteMode() const { return m_isReadOnly != Unset; } - bool HasOverflowMode() const { return m_overflow != Unset; } + bool HasOverflowMode() const { return m_overflow != UnsetOverflow; } const wxColour& GetTextColour() const; const wxColour& GetBackgroundColour() const; @@ -683,7 +676,7 @@ public: void GetAlignment(int *hAlign, int *vAlign) const; void GetSize(int *num_rows, int *num_cols) const; bool GetOverflow() const - { return m_overflow != wxGridCellAttr::SingleCell; } + { return m_overflow != SingleCell; } wxGridCellRenderer *GetRenderer(wxGrid* grid, int row, int col) const; wxGridCellEditor *GetEditor(wxGrid* grid, int row, int col) const; @@ -701,6 +694,13 @@ private: ReadOnly }; + enum wxAttrOverflowMode + { + UnsetOverflow = -1, + Overflow, + SingleCell + }; + // the common part of all ctors void Init(wxGridCellAttr *attrDefault = NULL); diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 3e6e14ff1d..eb8e46ad65 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -2061,7 +2061,7 @@ void wxGridCellAttr::Init(wxGridCellAttr *attrDefault) m_attrkind = wxGridCellAttr::Cell; m_sizeRows = m_sizeCols = 1; - m_overflow = TRUE; + m_overflow = UnsetOverflow; SetDefAttr(attrDefault); }