Potential fix for disappearing DCP names under translation.
authorCarl Hetherington <cth@carlh.net>
Fri, 23 Sep 2016 18:23:59 +0000 (19:23 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 23 Sep 2016 18:23:59 +0000 (19:23 +0100)
src/wx/content_panel.cc

index 5892d9c4cdb7a7127ff3db0dfb3a7e15e848780b..b28d9ca229fb88e8c730cd0585448b8c0c8570d9 100644 (file)
@@ -501,7 +501,7 @@ ContentPanel::setup ()
                bool const needs_kdm = dcp && dcp->needs_kdm ();
                bool const needs_assets = dcp && dcp->needs_assets ();
 
-               string s = i->summary ();
+               wxString s = std_to_wx (i->summary ());
 
                if (!valid) {
                        s = _("MISSING: ") + s;
@@ -517,7 +517,7 @@ ContentPanel::setup ()
 
                wxListItem item;
                item.SetId (t);
-               item.SetText (std_to_wx (s));
+               item.SetText (s);
                item.SetData (i.get ());
                _content->InsertItem (item);