diff options
author | Marius Kintel <marius@kintel.net> | 2011-11-23 15:55:03 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-11-23 15:55:03 (GMT) |
commit | e0b5f3f33d974b60daf88a28ce86dc6013f44746 (patch) | |
tree | f8b5d3834822cf7234cfdd3b24f1d455cb0e5118 /src/dxfdata.cc | |
parent | 60d7e80c482f78e5a8689ad1108d398aaad42f55 (diff) |
Output relative filenames in warnings for echotest to give similar results across machines
Diffstat (limited to 'src/dxfdata.cc')
-rw-r--r-- | src/dxfdata.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dxfdata.cc b/src/dxfdata.cc index bf689f7..cf9248f 100644 --- a/src/dxfdata.cc +++ b/src/dxfdata.cc @@ -39,6 +39,9 @@ #include <boost/algorithm/string.hpp> #include <algorithm> +#include <QDir> +#include "value.h" + struct Line { int idx[2]; // indices into DxfData::points bool disabled; @@ -370,10 +373,10 @@ DxfData::DxfData(double fn, double fs, double fa, BOOST_FOREACH(const EntityList::value_type &i, unsupported_entities_list) { if (layername.empty()) { PRINTF("WARNING: Unsupported DXF Entity `%s' (%x) in `%s'.", - i.first.c_str(), i.second, filename.c_str()); + i.first.c_str(), i.second, QuotedString(QDir::current().relativeFilePath(QString::fromStdString(filename)).toStdString()).c_str()); } else { PRINTF("WARNING: Unsupported DXF Entity `%s' (%x) in layer `%s' of `%s'.", - i.first.c_str(), i.second, layername.c_str(), filename.c_str()); + i.first.c_str(), i.second, layername.c_str(), QuotedString(QDir::current().relativeFilePath(QString::fromStdString(filename)).toStdString()).c_str()); } } |