[TD]Hatch - handle empty parameter - use default

This commit is contained in:
wandererfan
2020-03-20 14:08:52 -04:00
committed by WandererFan
parent fa8c7ee0a3
commit 54cd3b8130
2 changed files with 5 additions and 2 deletions

View File

@@ -270,6 +270,9 @@ std::string DrawHatch::prefSvgHatch(void)
std::string defaultDir = App::Application::getResourceDir() + "Mod/TechDraw/Patterns/";
std::string defaultFileName = defaultDir + "simple.svg";
std::string result = hGrp->GetASCII("FileHatch",defaultFileName.c_str());
if (result.empty()) {
result = defaultFileName;
}
return result;
}