From ddd2c4f5cc244970487a3be087fb3ddbb2cf025b Mon Sep 17 00:00:00 2001 From: Istvan Matejcsok <119620946+matejcsok-ee@users.noreply.github.com> Date: Wed, 24 Jun 2026 09:00:05 +0200 Subject: [PATCH] fix(test): match KiCad 10 FONT::Draw signature in gal-webgl stub KiCad 10.0.4 added two trailing optional params (std::optional aMousePos, wxString* aActiveUrl) to the out-of-line FONT::Draw declaration in font/font.h. The hand-written stub in the GAL WebGL test app still declared the old 6-arg form, so it matched no declaration and failed the CI "Build GAL WebGL test app" step. Update the stub signature to match. Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/gal-regression/wasm/wasm_stubs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/gal-regression/wasm/wasm_stubs.cpp b/tests/gal-regression/wasm/wasm_stubs.cpp index f426344..a068ad6 100644 --- a/tests/gal-regression/wasm/wasm_stubs.cpp +++ b/tests/gal-regression/wasm/wasm_stubs.cpp @@ -202,7 +202,8 @@ const METRICS& METRICS::Default() { void OUTLINE_GLYPH::Triangulate(std::function) const {} void FONT::Draw(KIGFX::GAL*, const wxString&, const VECTOR2I&, const VECTOR2I&, - const TEXT_ATTRIBUTES&, const METRICS&) const {} + const TEXT_ATTRIBUTES&, const METRICS&, std::optional, + wxString*) const {} // STROKE_GLYPH stubs STROKE_GLYPH::STROKE_GLYPH( const STROKE_GLYPH& aGlyph )