diff --git a/include/wx/dcsvg.h b/include/wx/dcsvg.h index 488d0c3057..0c4fdd575a 100644 --- a/include/wx/dcsvg.h +++ b/include/wx/dcsvg.h @@ -86,10 +86,12 @@ public: virtual wxCoord GetCharHeight() const wxOVERRIDE; virtual wxCoord GetCharWidth() const wxOVERRIDE; +#if wxUSE_PALETTE virtual void SetPalette(const wxPalette& WXUNUSED(palette)) wxOVERRIDE { wxFAIL_MSG(wxT("wxSVGFILEDC::SetPalette not implemented")); } +#endif virtual void SetLogicalFunction(wxRasterOperationMode WXUNUSED(function)) wxOVERRIDE { diff --git a/include/wx/generic/dcpsg.h b/include/wx/generic/dcpsg.h index 972f533475..84f9e6690e 100644 --- a/include/wx/generic/dcpsg.h +++ b/include/wx/generic/dcpsg.h @@ -79,7 +79,9 @@ public: virtual void ComputeScaleAndOrigin() wxOVERRIDE; void SetBackgroundMode(int WXUNUSED(mode)) wxOVERRIDE { } +#if wxUSE_PALETTE void SetPalette(const wxPalette& WXUNUSED(palette)) wxOVERRIDE { } +#endif void SetPrintData(const wxPrintData& data); wxPrintData& GetPrintData() { return m_printData; } diff --git a/include/wx/gtk/print.h b/include/wx/gtk/print.h index 66e42100f3..5c54286eb3 100644 --- a/include/wx/gtk/print.h +++ b/include/wx/gtk/print.h @@ -245,7 +245,9 @@ public: wxSize GetPPI() const wxOVERRIDE; virtual int GetDepth() const wxOVERRIDE { return 24; } void SetBackgroundMode(int mode) wxOVERRIDE; +#if wxUSE_PALETTE void SetPalette(const wxPalette& WXUNUSED(palette)) wxOVERRIDE { } +#endif void SetResolution(int ppi); // overridden for wxPrinterDC Impl