Red Hat Bugzilla – Bug 1282142
StaticText widget size grows on each SetLable()
Last modified: 2016-02-29 00:24:19 EST
Created attachment 1094308 [details]
Example cpp program showing the label size increasing
Description of problem:
Seen running wxPython program MAVProxy, original report is here
Example C++ program attached. On each OnTimer() the labels get a little bit wider.
Looking around with gdb and wxWidgets source, there is a dodgy increment in wxStaticText::DoGetBestSize() (stattext.cpp line 257). Removing the increment and rebuilding seems to fix the problem.
Version-Release number of selected component (if applicable):
Run attached wxWidgets example program.
Steps to Reproduce:
1. g++ $(wx-config-3.0 --cxxflags --libs) label-size.cpp
Created attachment 1094309 [details]
Remove the size.x++ in wxStaticText::DoGetBestSize()
Reported upstream: http://trac.wxwidgets.org/ticket/17390
wxGTK3-3.0.2-17.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8b75629956
wxGTK3-3.0.2-17.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-8b75629956
wxGTK3-3.0.2-17.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.