+ fix a bug with index relative paths

This commit is contained in:
kelson42 2011-09-04 13:07:04 +00:00
parent e06af8e68f
commit 4fbf78164a
1 changed files with 4 additions and 4 deletions

View File

@ -62,12 +62,12 @@ namespace kiwix {
book.faviconMimeType = bookNode.attribute("faviconMimeType").value(); book.faviconMimeType = bookNode.attribute("faviconMimeType").value();
/* Compute absolute paths if relative one are used */ /* Compute absolute paths if relative one are used */
if (!book.path.empty() && isRelativePath(book.path)) if (isRelativePath(book.path))
book.pathAbsolute = computeAbsolutePath(libraryPath, book.path); book.pathAbsolute = computeAbsolutePath(libraryPath, book.path);
else else
book.pathAbsolute = book.path; book.pathAbsolute = book.path;
if (book.indexPath.empty() && isRelativePath(book.indexPath)) if (isRelativePath(book.indexPath))
book.indexPathAbsolute = computeAbsolutePath(libraryPath, book.indexPath); book.indexPathAbsolute = computeAbsolutePath(libraryPath, book.indexPath);
else else
book.indexPathAbsolute = book.indexPath; book.indexPathAbsolute = book.indexPath;