diff options
Diffstat (limited to 'core/path_db.cpp')
-rw-r--r-- | core/path_db.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/path_db.cpp b/core/path_db.cpp index 0956c4cd3f..d0feda5c82 100644 --- a/core/path_db.cpp +++ b/core/path_db.cpp @@ -53,6 +53,12 @@ uint32_t NodePath::hash() const { } +void NodePath::prepend_period() { + + if (data->path.size() && data->path[0].operator String()!=".") { + data->path.insert(0,"."); + } +} bool NodePath::is_absolute() const { |