From: Stefan Neis Date: Mon, 13 Mar 2000 12:04:25 +0000 (+0000) Subject: More compilation fixes. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6fc0f38fe07fc8c5ff5946f33e0015d3f438b920 More compilation fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index 47d18a9031..5f707fb54b 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -1478,7 +1478,7 @@ public: void SetCellBitmap(wxBitmap *WXUNUSED(bitmap), int WXUNUSED(row), int WXUNUSED(col)) { } void SetDividerPen(const wxPen& WXUNUSED(pen)) { } - wxPen& GetDividerPen() const { return wxNullPen; } + wxPen& GetDividerPen() const; void OnActivate(bool WXUNUSED(active)) {} // ******** End of compatibility functions ********** diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 592c390854..65a3603c05 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -624,7 +624,7 @@ void wxGridCellTextEditor::HandleReturn( wxKeyEvent& { #if defined(__WXMOTIF__) || defined(__WXGTK__) // wxMotif needs a little extra help... - long pos = Text()->GetInsertionPoint(); + size_t pos = (size_t)( Text()->GetInsertionPoint() ); wxString s( Text()->GetValue() ); s = s.Left(pos) + "\n" + s.Mid(pos); Text()->SetValue(s); @@ -7606,6 +7606,12 @@ void wxGrid::Fit() AutoSize(); } + +wxPen& wxGrid::GetDividerPen() const +{ + return wxNullPen; +} + // ---------------------------------------------------------------------------- // cell value accessor functions // ----------------------------------------------------------------------------