aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/Button.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/Button.cc b/src/FbTk/Button.cc
index 1ef25d2..03b5283 100644
--- a/src/FbTk/Button.cc
+++ b/src/FbTk/Button.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Button.cc,v 1.7 2003/05/07 11:35:22 fluxgen Exp $ 22// $Id: Button.cc,v 1.8 2003/06/05 12:42:31 fluxgen Exp $
23 23
24#include "Button.hh" 24#include "Button.hh"
25 25
@@ -109,7 +109,8 @@ void Button::hide() {
109} 109}
110 110
111void Button::buttonPressEvent(XButtonEvent &event) { 111void Button::buttonPressEvent(XButtonEvent &event) {
112 m_win.setBackgroundPixmap(m_pressed_pm); 112 if (m_pressed_pm != 0)
113 m_win.setBackgroundPixmap(m_pressed_pm);
113 m_pressed = true; 114 m_pressed = true;
114 clear(); 115 clear();
115 116