]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/widget.cpp
Fix a crash if the linear program contains an empty column
[libs/gltk.git] / source / widget.cpp
index 1cb42e5cae15598cdd82ea25809913e59a8359e7..643331602b16069863d03e905bb17f455a12f695 100644 (file)
@@ -1,7 +1,7 @@
 #include <msp/gl/immediate.h>
 #include <msp/gl/matrix.h>
 #include <msp/gl/transform.h>
-#include <msp/strings/formatter.h>
+#include <msp/strings/format.h>
 #include "container.h"
 #include "resources.h"
 #include "root.h"
@@ -97,7 +97,7 @@ void Widget::update_style()
                        sname += style_name;
                }
 
-               style = root->get_resources().get<Style>(sname);
+               style = &root->get_resources().get<Style>(sname);
        }
 
        on_style_change();