From 18de3a67dd27c82c5926ed1357593fcf707a5759 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 5 Jun 2003 12:42:31 +0000 Subject: pressed pixmap fix, we use old background pixmap if m_pressed_pm is null --- src/FbTk/Button.cc | 5 +++-- 1 file 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Button.cc,v 1.7 2003/05/07 11:35:22 fluxgen Exp $ +// $Id: Button.cc,v 1.8 2003/06/05 12:42:31 fluxgen Exp $ #include "Button.hh" @@ -109,7 +109,8 @@ void Button::hide() { } void Button::buttonPressEvent(XButtonEvent &event) { - m_win.setBackgroundPixmap(m_pressed_pm); + if (m_pressed_pm != 0) + m_win.setBackgroundPixmap(m_pressed_pm); m_pressed = true; clear(); -- cgit v0.11.2