From de3f658ca4e6de56fd308c90f098d919c7105e37 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Tue, 27 Jan 2026 15:44:08 -0500 Subject: [PATCH] Fix wxAuiDefaultToolBarArt::Get{Label,Tool}Size "dc" params type They are now wxReadOnlyDC and not wxDC. Closes #26122. --- interface/wx/aui/auibar.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/interface/wx/aui/auibar.h b/interface/wx/aui/auibar.h index 4d86d506f2..1210aab717 100644 --- a/interface/wx/aui/auibar.h +++ b/interface/wx/aui/auibar.h @@ -874,13 +874,27 @@ public: const wxRect& rect, int state); + /** + Return the size of the label for the given item. + + Note that the type of @a dc was wxDC until wxWidgets 3.3.0, where it + was changed to wxReadOnlyDC as this function doesn't modify the DC + contents. + */ virtual wxSize GetLabelSize( - wxDC& dc, + wxReadOnlyDC& dc, wxWindow* wnd, const wxAuiToolBarItem& item); + /** + Return the size of the given item. + + Note that the type of @a dc was wxDC until wxWidgets 3.3.0, where it + was changed to wxReadOnlyDC as this function doesn't modify the DC + contents. + */ virtual wxSize GetToolSize( - wxDC& dc, + wxReadOnlyDC& dc, wxWindow* wnd, const wxAuiToolBarItem& item);