|
|
|
@ -2221,16 +2221,16 @@ CSMDoc::Document::Document (const Files::ConfigurationManager& configuration,
|
|
|
|
|
{
|
|
|
|
|
boost::filesystem::path customFiltersPath (configuration.getUserDataPath());
|
|
|
|
|
customFiltersPath /= "defaultfilters";
|
|
|
|
|
|
|
|
|
|
std::string destinationPath = mProjectPath.string() + "/defaultfilters";
|
|
|
|
|
std::ofstream dst(destinationPath.c_str(), std::ios::binary);
|
|
|
|
|
|
|
|
|
|
std::ofstream destination (mProjectPath.string().c_str(), std::ios::binary);
|
|
|
|
|
|
|
|
|
|
if (boost::filesystem::exists (customFiltersPath))
|
|
|
|
|
{
|
|
|
|
|
dst<<std::ifstream(customFiltersPath.c_str(), std::ios::binary).rdbuf();
|
|
|
|
|
} else
|
|
|
|
|
destination << std::ifstream(customFiltersPath.c_str(), std::ios::binary).rdbuf();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
dst<<std::ifstream(std::string(mResDir.string() + "/defaultfilters").c_str(), std::ios::binary).rdbuf();
|
|
|
|
|
destination << std::ifstream(std::string(mResDir.string() + "/defaultfilters").c_str(), std::ios::binary).rdbuf();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|