]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/style.h
Return a reference from Style::get_font
[libs/gltk.git] / source / style.h
index 29c5e3430b0fca7a1581312fee3e1a2df5ac999f..56f7ac484afce3e94fd2ee4b639b70466e32eeeb 100644 (file)
@@ -47,7 +47,7 @@ private:
 
 public:
        Style(Resources &);
-       const GL::Font *get_font() const  { return font; }
+       const GL::Font &get_font() const  { return *font; }
        unsigned get_font_size() const { return font_size; }
        const GL::Color &get_font_color() const { return font_color; }
        const PartSeq &get_parts() const { return parts; }