X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9aebcb5e447082b858c4a70f7ff33a27fdba9ada..a78d2fbab115b4c6537349fb06275d1610bf4aa0:/src/generic/renderg.cpp?ds=sidebyside diff --git a/src/generic/renderg.cpp b/src/generic/renderg.cpp index 6c0ce55de4..0024bcec60 100644 --- a/src/generic/renderg.cpp +++ b/src/generic/renderg.cpp @@ -398,6 +398,7 @@ wxRendererGeneric::DrawHeaderButtonContents(wxWindow *win, // truncate and add an ellipsis (...) if the text is too wide. const int availWidth = rect.width - labelWidth; +#if wxUSE_CONTROLS if ( tw > availWidth ) { label = wxControl::Ellipsize(label, @@ -408,6 +409,7 @@ wxRendererGeneric::DrawHeaderButtonContents(wxWindow *win, tw = dc.GetTextExtent(label).x; } else // enough space, we can respect alignment +#endif // wxUSE_CONTROLS { switch (params->m_labelAlignment) {