From a1c03d5935c15a8d5ea29fba20569900f1693b45 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 6 Jun 2011 08:11:18 +1000 Subject: Fix problem compiling on wxWidgets. Bug #3306156. From Morten MacFly. --- src/Style.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Style.cxx b/src/Style.cxx index ce1f0908e..fc250f0bc 100644 --- a/src/Style.cxx +++ b/src/Style.cxx @@ -142,5 +142,8 @@ void Style::ClearTo(const Style &source) { void Style::Copy(Font &font_, const FontMeasurements &fm_) { font.MakeAlias(font_); +#if PLAT_WX + font.SetAscent(fm_.ascent); +#endif (FontMeasurements &)(*this) = fm_; } -- cgit v1.2.3