summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-05-08 16:07:25 +0000
committerrandomdan <randomdan@localhost>2011-05-08 16:07:25 +0000
commitc26e0297d3e0755fd49bdabb4054cfe3ac3f98d6 (patch)
tree1f10c666ac6e5f8f5a2155f20cf4e67336759e23
parentMinor tweaks to move to boost::filesystem3 (diff)
downloadproject2-c26e0297d3e0755fd49bdabb4054cfe3ac3f98d6.tar.bz2
project2-c26e0297d3e0755fd49bdabb4054cfe3ac3f98d6.tar.xz
project2-c26e0297d3e0755fd49bdabb4054cfe3ac3f98d6.zip
Fix off by one since moving to boost::filesystem3
-rw-r--r--project2/fsRows.cpp2
1 files changed, 1 insertions, 1 deletions
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