[wxWidgets/wxWidgets] b62785: Fix wxStaticText label wrapping in wxGTK

0 views
Skip to first unread message

VZ

unread,
May 30, 2026, 7:39:03 PM (11 days ago) May 30
to wx-co...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/wxWidgets/wxWidgets
Commit: b627852868459c8722b9b04533d51bdb987bf3a7
https://github.com/wxWidgets/wxWidgets/commit/b627852868459c8722b9b04533d51bdb987bf3a7
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-05-31 (Sun, 31 May 2026)

Changed paths:
M src/common/stattextcmn.cpp

Log Message:
-----------
Fix wxStaticText label wrapping in wxGTK

Both using wxST_WRAP and explicitly calling Wrap() from wxEVT_SIZE
handler could result in making the visible label completely empty due to
SetLabel(m_unwrappedLabel) call in wxStaticTextBase::Wrap() not working
as expected: at least in wxGTK, m_unwrappedLabel was reset by SetLabel()
before being actually used.

Fix this by passing the already existing local copy of m_unwrappedLabel
to this function instead.

See https://stackoverflow.com/questions/79948024/wxwidgets-text-wrapping-causes-the-text-to-disappear



To unsubscribe from these emails, change your notification settings at https://github.com/wxWidgets/wxWidgets/settings/notifications
Reply all
Reply to author
Forward
0 new messages