From e907d4be70713af7b583952cf522e179b747dc00 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Tue, 22 Nov 2022 19:58:15 -0500 Subject: [PATCH] Reset text font style and weight at the end of DrawText. Fixes #3047 --- src/view_text.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/view_text.cpp b/src/view_text.cpp index 46b611d9485..d94888504fc 100644 --- a/src/view_text.cpp +++ b/src/view_text.cpp @@ -503,6 +503,8 @@ void View::DrawText(DeviceContext *dc, Text *text, TextDrawingParams ¶ms) params.m_actualWidth = text->GetContentRight(); + resources->SelectTextFont(FONTWEIGHT_NONE, FONTSTYLE_NONE); + dc->EndTextGraphic(text, this); }