From c26e0297d3e0755fd49bdabb4054cfe3ac3f98d6 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