Skip to content

Commit

Permalink
Reset text font style and weight at the end of DrawText. Fixes #3047
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Nov 23, 2022
1 parent c9f4791 commit e907d4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/view_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,8 @@ void View::DrawText(DeviceContext *dc, Text *text, TextDrawingParams &params)

params.m_actualWidth = text->GetContentRight();

resources->SelectTextFont(FONTWEIGHT_NONE, FONTSTYLE_NONE);

dc->EndTextGraphic(text, this);
}

Expand Down

0 comments on commit e907d4b

Please sign in to comment.