summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/Theme.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FbTk/Theme.cc b/src/FbTk/Theme.cc
index 4c1504b..8ebab7d 100644
--- a/src/FbTk/Theme.cc
+++ b/src/FbTk/Theme.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: Theme.cc,v 1.13 2003/08/22 22:17:30 fluxgen Exp $ 22// $Id: Theme.cc,v 1.14 2003/08/28 14:18:36 fluxgen Exp $
23 23
24#include "Theme.hh" 24#include "Theme.hh"
25 25
@@ -132,6 +132,7 @@ void ThemeItem<FbTk::Texture>::load() {
132 std::auto_ptr<PixmapWithMask> pm(Image::load(pixmap_name, m_tm.screenNum())); 132 std::auto_ptr<PixmapWithMask> pm(Image::load(pixmap_name, m_tm.screenNum()));
133 if (pm.get() == 0) { 133 if (pm.get() == 0) {
134 cerr<<"Resource("<<name()+".pixmap"<<"): Failed to load image: "<<pixmap_name<<endl; 134 cerr<<"Resource("<<name()+".pixmap"<<"): Failed to load image: "<<pixmap_name<<endl;
135 m_value.pixmap() = 0;
135 } else 136 } else
136 m_value.pixmap() = pm->pixmap().release(); 137 m_value.pixmap() = pm->pixmap().release();
137} 138}