Build tests on Ubuntu 24.04.
[dcpomatic.git] / src / wx / fonts_dialog.cc
index a035a5ffc53c981ad03910eec137158b6fce7caf..2fecdc086433996267e0a9dc6ef8959697cc5bc9 100644 (file)
@@ -25,7 +25,6 @@
 #include "wx_util.h"
 #include "lib/content.h"
 #include "lib/font.h"
-#include "lib/scope_guard.h"
 #include "lib/text_content.h"
 #include <dcp/filesystem.h>
 #include <dcp/warnings.h>
@@ -121,7 +120,7 @@ FontsDialog::setup ()
                _fonts->SetItem(n, 0, id);
                _fonts->SetItemData(n, i->id().empty());
                if (i->file()) {
-                       _fonts->SetItem(n, 1, i->file()->leaf().string());
+                       _fonts->SetItem(n, 1, i->file()->filename().string());
                }
                ++n;
        }