From e3d676a652686a4376e46e4a35fdb107b4f32d0d Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 2 Sep 2018 21:13:22 +0100 Subject: [PATCH] odt.cpp: Start from the last character in the page title and not the null character --- source/tools/odthelpbrowser/odt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tools/odthelpbrowser/odt.cpp b/source/tools/odthelpbrowser/odt.cpp index 3ce4456..7e08b1f 100644 --- a/source/tools/odthelpbrowser/odt.cpp +++ b/source/tools/odthelpbrowser/odt.cpp @@ -134,7 +134,7 @@ namespace ODT int deletePageNumberCount = 0; - for (std::string::iterator pageTitleIter = pageTitle.end(); + for (std::string::iterator pageTitleIter = pageTitle.end() - 1; pageTitleIter != pageTitle.begin(); pageTitleIter--) { -- 2.39.5