Don't crash when changing label of label-less wxToggleButton in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Nov 2011 19:49:54 +0000 (19:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Nov 2011 19:49:54 +0000 (19:49 +0000)
commitb29bd6b44fdf18f6dcd789652dc2b05db8458b76
treeffed4c46b629400b4e47078c3ac9424d8ab55579
parentd8991cbffe038d1bdcdf98552bf2b7444365ca29
Don't crash when changing label of label-less wxToggleButton in wxGTK.

If a button doesn't show any text label, simply don't do anything when
SetLabel() is called instead of replacing the image shown by the button with a
text label as the button doesn't expect this to happen and doing it breaks its
assumptions about the widgets it has and results in assert failures later.

Closes #13693.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/tglbtn.cpp