]> git.sesse.net Git - casparcg/commitdiff
[flash] Fixed bug where template-host copying didn't work.
authorHelge Norberg <helge.norberg@svt.se>
Tue, 15 Nov 2016 16:34:13 +0000 (17:34 +0100)
committerHelge Norberg <helge.norberg@svt.se>
Tue, 15 Nov 2016 16:34:13 +0000 (17:34 +0100)
common/env.cpp

index 1ce341d46f349cf33805e96592640d3c41cb6f38..e7b78298cee97a81dd9286bab52f88af9980b7bd 100644 (file)
@@ -140,7 +140,7 @@ void configure(const std::wstring& filename)
                                if(it->path().wstring().find(L".fth") != std::wstring::npos)
                                {
                                        auto from_path = *it;
-                                       auto to_path = boost::filesystem::path(ftemplate + L"/" + it->path().wstring());
+                                       auto to_path = boost::filesystem::path(ftemplate + L"/" + it->path().filename().wstring());
 
                                        if(boost::filesystem::exists(to_path))
                                                boost::filesystem::remove(to_path);