diff options
author | Johann Klähn <kljohann@gmail.com> | 2013-01-15 00:23:25 +0100 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2013-01-15 21:16:15 +0100 |
commit | 428490e917f1858acdcc3f70441353da2cb382c5 (patch) | |
tree | 3ecd324e9b07910396ba338b35b5afdf3f9ac8da /src/context.h | |
parent | d4df36a5983ee5ee8ee56c14f3decdcad6faf8af (diff) | |
download | fork-ledger-428490e917f1858acdcc3f70441353da2cb382c5.tar.gz fork-ledger-428490e917f1858acdcc3f70441353da2cb382c5.tar.bz2 fork-ledger-428490e917f1858acdcc3f70441353da2cb382c5.zip |
fix for 'store absolute paths internally'
`parent_path` was called on unprocessed path
so neither `resolve_path` nor `filesystem::absolute` had any effect.
Diffstat (limited to 'src/context.h')
-rw-r--r-- | src/context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context.h b/src/context.h index 7373be39..9fe0613b 100644 --- a/src/context.h +++ b/src/context.h @@ -121,7 +121,7 @@ inline parse_context_t open_for_reading(const path& pathname, throw_(std::runtime_error, _f("Cannot read journal file %1%") % filename); - path parent(pathname.parent_path()); + path parent(filename.parent_path()); shared_ptr<std::istream> stream(new ifstream(filename)); parse_context_t context(stream, parent); context.pathname = filename; |