Bug 1282142

Summary: StaticText widget size grows on each SetLable()
Product: [Fedora] Fedora Reporter: zachw <conflatulence>
Component: wxGTK3Assignee: Scott Talbert <swt>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: alexjnewt, swt
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: wxGTK3-3.0.2-17.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-29 05:24:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Example cpp program showing the label size increasing
none
Remove the size.x++ in wxStaticText::DoGetBestSize() none

Description zachw 2015-11-15 03:23:04 UTC
Created attachment 1094308 [details]
Example cpp program showing the label size increasing

Description of problem:

Seen running wxPython program MAVProxy, original report is here
https://github.com/Dronecode/MAVProxy/issues/224

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):
wxGTK3-3.0.2-11.fc23.x86_64

How reproducible:
Run attached wxWidgets example program.

Steps to Reproduce:
1. g++ $(wx-config-3.0 --cxxflags --libs) label-size.cpp
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 zachw 2015-11-15 03:25:30 UTC
Created attachment 1094309 [details]
Remove the size.x++ in wxStaticText::DoGetBestSize()

Comment 2 Scott Talbert 2016-02-23 03:25:32 UTC
Reported upstream: http://trac.wxwidgets.org/ticket/17390

Comment 3 Fedora Update System 2016-02-25 04:03:23 UTC
wxGTK3-3.0.2-17.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8b75629956

Comment 4 Fedora Update System 2016-02-26 20:53:58 UTC
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

Comment 5 Fedora Update System 2016-02-29 05:24:12 UTC
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.