gnucash unstable: Bug 792833 - User specifies source of 'num' field'; either...
John Ralls
jralls at code.gnucash.org
Tue Feb 20 15:04:54 EST 2018
Updated via https://github.com/Gnucash/gnucash/commit/78705dc8 (commit)
from https://github.com/Gnucash/gnucash/commit/7e814ad0 (commit)
commit 78705dc8bec1a1433a2d1f8a7eab2a96842cf043
Author: John Ralls <jralls at ceridwen.us>
Date: Tue Feb 20 12:02:38 2018 -0800
Bug 792833 - User specifies source of 'num' field'; either...
transaction number or split action (requires at least GnuCash 2.5.0)
Strip leading delimiters from KVP keys when reading them from the
database. Leading delimiters are incorrectly included in databases
created with GnuCash 2.6.x.
diff --git a/libgnucash/backend/sql/gnc-slots-sql.cpp b/libgnucash/backend/sql/gnc-slots-sql.cpp
index c8b36ff..d29f553 100644
--- a/libgnucash/backend/sql/gnc-slots-sql.cpp
+++ b/libgnucash/backend/sql/gnc-slots-sql.cpp
@@ -203,7 +203,7 @@ get_key_from_path (std::string path)
auto idx = get_final_delim(path);
if (idx == std::string::npos)
return path;
- return path.substr(idx);
+ return path.substr(idx + 1);
}
static std::string
Summary of changes:
libgnucash/backend/sql/gnc-slots-sql.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list