diff --git a/clientgui/ViewMessages.cpp b/clientgui/ViewMessages.cpp index c032c52129..89e7fb7e21 100644 --- a/clientgui/ViewMessages.cpp +++ b/clientgui/ViewMessages.cpp @@ -137,7 +137,7 @@ void CViewMessages::OnMessagesCopyAll( wxCommandEvent& WXUNUSED(event) ) { wxASSERT(pFrame); wxASSERT(wxDynamicCast(pFrame, CMainFrame)); -#ifndef wxUSE_CLIPBOARD +#ifdef wxUSE_CLIPBOARD wxInt32 iIndex = -1; wxInt32 iRowCount = 0; @@ -169,7 +169,7 @@ void CViewMessages::OnMessagesCopySelected( wxCommandEvent& WXUNUSED(event) ) { wxASSERT(pFrame); wxASSERT(wxDynamicCast(pFrame, CMainFrame)); -#ifndef wxUSE_CLIPBOARD +#ifdef wxUSE_CLIPBOARD wxInt32 iIndex = -1; @@ -336,7 +336,7 @@ wxInt32 CViewMessages::FormatMessage(wxInt32 item, wxString& strBuffer) const { } -#ifndef wxUSE_CLIPBOARD +#ifdef wxUSE_CLIPBOARD bool CViewMessages::OpenClipboard() { bool bRetVal = false; diff --git a/clientgui/ViewMessages.h b/clientgui/ViewMessages.h index 15c5c6f504..a2d258d3a3 100644 --- a/clientgui/ViewMessages.h +++ b/clientgui/ViewMessages.h @@ -66,7 +66,7 @@ protected: wxInt32 FormatTime( wxInt32 item, wxString& strBuffer ) const; wxInt32 FormatMessage( wxInt32 item, wxString& strBuffer ) const; -#ifndef wxUSE_CLIPBOARD +#ifdef wxUSE_CLIPBOARD bool m_bClipboardOpen; wxString m_strClipboardData; bool OpenClipboard();