From 12565b243c1d128a0e8674c931701a85ca6dac77 Mon Sep 17 00:00:00 2001 From: randomdan Date: Sun, 8 May 2011 16:07:25 +0000 Subject: Fix off by one since moving to boost::filesystem3 --- project2/fsRows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project2/fsRows.cpp b/project2/fsRows.cpp index e2ddc50..868eaa7 100644 --- a/project2/fsRows.cpp +++ b/project2/fsRows.cpp @@ -269,7 +269,7 @@ FsRows::resolveAttr(const Glib::ustring & a) const VariableType FsRows::fileRelPath() const { - return curPathStr.substr(fsRoot.string().length()); + return curPathStr.substr(fsRoot.string().length() - 1); } VariableType -- cgit v1.2.3