summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-10-03 14:51:53 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-10-03 14:51:53 +0100
commite1799320048bf49a8148b5a8ee2fdf94a9b2b863 (patch)
treec06ea4fcad64197818f604a6c8bd8599c16a15b2
parentAdds support for reading/writing in ICE native format (diff)
downloadslicer-e1799320048bf49a8148b5a8ee2fdf94a9b2b863.tar.bz2
slicer-e1799320048bf49a8148b5a8ee2fdf94a9b2b863.tar.xz
slicer-e1799320048bf49a8148b5a8ee2fdf94a9b2b863.zip
Don't assume absolute class name
-rw-r--r--slicer/tool/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/slicer/tool/parser.cpp b/slicer/tool/parser.cpp
index 302ea63..d61c8a6 100644
--- a/slicer/tool/parser.cpp
+++ b/slicer/tool/parser.cpp
@@ -583,7 +583,7 @@ namespace Slicer {
Slicer::defineMODELPART(const std::string & type, const Slice::TypePtr & stype, const Slice::StringList & metadata) const
{
if (auto cmp = metaDataValue("slicer:custommodelpart:", metadata)) {
- fprintbf(cpp, "CUSTOMMODELPARTFOR(%s, %s< %s >, ::%s);\n\n",
+ fprintbf(cpp, "CUSTOMMODELPARTFOR(%s, %s< %s >, %s);\n\n",
type, getBasicModelPart(stype), type, boost::algorithm::replace_all_copy(*cmp, ".", "::"));
}
else {