From 47c8aa0774ca6a294121af70b666f4710915a479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Mon, 17 Feb 2025 18:45:31 -0300 Subject: [PATCH] Fix wrap not updating after font zoom in/out when using wrap against line breaking column (SpartanJ/ecode#390). --- src/eepp/ui/uicodeeditor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/eepp/ui/uicodeeditor.cpp b/src/eepp/ui/uicodeeditor.cpp index 3d19ebf97..100612f70 100644 --- a/src/eepp/ui/uicodeeditor.cpp +++ b/src/eepp/ui/uicodeeditor.cpp @@ -3054,6 +3054,8 @@ void UICodeEditor::udpateGlyphWidth() { mGlyphWidth = mFont->getGlyph( '@', getCharacterSize(), false, false ).advance; mMouseWheelScroll = 3 * getLineHeight(); invalidateLongestLineWidth(); + if ( mFontStyleConfig.Font ) + invalidateLineWrapMaxWidth( false ); } Drawable* UICodeEditor::findIcon( const std::string& name ) {