fix for previous commit (was using wrong destination path)

deque
Marc Zinnschlag 11 years ago
parent ea2feb0aa9
commit 0dff1fb816

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

Loading…
Cancel
Save