summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-08-13 13:12:45 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-08-13 13:12:45 +0000
commit9d5529ca1b43a144f825fc58d6aa37911a4ac7f6 (patch)
treeb0b673d17c9c60393f0b91ecb0d9ee89edb7ad3d /src/libnrtype
parentPrinting. Fix for Bug #264831 (Print settings not persistent). (diff)
downloadinkscape-9d5529ca1b43a144f825fc58d6aa37911a4ac7f6.tar.gz
inkscape-9d5529ca1b43a144f825fc58d6aa37911a4ac7f6.zip
Fix build
(bzr r13510)
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/font-lister.cpp6
-rw-r--r--src/libnrtype/font-lister.h7
2 files changed, 7 insertions, 6 deletions
diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp
index 43c3045b1..3c21e62e4 100644
--- a/src/libnrtype/font-lister.cpp
+++ b/src/libnrtype/font-lister.cpp
@@ -268,6 +268,12 @@ namespace Inkscape
font_list_store->thaw_notify();
}
+Inkscape::FontLister* FontLister::get_instance ()
+{
+ static Inkscape::FontLister* instance = new Inkscape::FontLister();
+ return instance;
+}
+
void
FontLister::update_font_list_recursive( SPObject *r, std::list<Glib::ustring> *l ) {
diff --git a/src/libnrtype/font-lister.h b/src/libnrtype/font-lister.h
index c89dab550..09be16f24 100644
--- a/src/libnrtype/font-lister.h
+++ b/src/libnrtype/font-lister.h
@@ -149,12 +149,7 @@ namespace Inkscape
update_font_list_recursive( SPObject *r, std::list<Glib::ustring> *l );
public:
- static Inkscape::FontLister*
- get_instance ()
- {
- static Inkscape::FontLister* instance = new Inkscape::FontLister();
- return instance;
- }
+ static Inkscape::FontLister* get_instance ();
/** Takes a hand written font spec and returns a Pango generated one in
* standard form.