+ small fix to be able to save relative path in addBookFromPath()

This commit is contained in:
kelson42 2011-11-01 12:58:34 +00:00
parent 79d00c2b36
commit bf58cf6b76
1 changed files with 2 additions and 1 deletions

View File

@ -204,7 +204,8 @@ namespace kiwix {
if (!pathToSave.empty() && pathToSave != pathToOpen) {
book.path = pathToSave;
book.pathAbsolute = pathToSave;
book.pathAbsolute = isRelativePath(pathToSave) ?
computeAbsolutePath(removeLastPathElement(writableLibraryPath, true, false), pathToSave) : pathToSave;
}
if (!checkMetaData ||