From 370fb80817cffbd9233f73d57b8dc91b4c7016ef Mon Sep 17 00:00:00 2001 From: Aaron Marks Date: Sun, 8 May 2005 11:51:24 +0000 Subject: Updated progressbar.cpp to check for NULL colorBar (causing seg fault). --- src/gui/progressbar.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/progressbar.cpp b/src/gui/progressbar.cpp index 6c405d0b..d19ed52d 100644 --- a/src/gui/progressbar.cpp +++ b/src/gui/progressbar.cpp @@ -115,7 +115,9 @@ void ProgressBar::setColor( red = newRed; green = newGreen; blue = newBlue; - colorBar->fillWithColor(red, green, blue); - colorBar->setAlpha(0.7f); + if (colorBar) { + colorBar->fillWithColor(red, green, blue); + colorBar->setAlpha(0.7f); + } } } -- cgit v1.2.3-70-g09d2