From 4c877589080ca421e74b1779f98ad396a1f24b88 Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Fri, 17 Mar 2023 19:21:39 +0100 Subject: [PATCH] Patch level : 12.0 1254 Files correlati : ve1.exe Commento: la stampa docmenti tagliava spazi nelle descrizioni lunghe --- src/include/reprint.cpp | 3 ++- src/include/strings.cpp | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/include/reprint.cpp b/src/include/reprint.cpp index 89bbff9c8..d60438b2b 100755 --- a/src/include/reprint.cpp +++ b/src/include/reprint.cpp @@ -2646,7 +2646,8 @@ void TReport_book::define_frame(const TReport_rct& rr) long TReport_book::print_section(char type, int level) { long h = -3; // Hidden - TReport_section* rs = _report->find_section(type, level); + TReport_section* rs = _report->find_section(type, level); + if (rs != NULL) h = print_section(*rs); return h; diff --git a/src/include/strings.cpp b/src/include/strings.cpp index 9cadae7bd..35a60201f 100755 --- a/src/include/strings.cpp +++ b/src/include/strings.cpp @@ -2175,14 +2175,14 @@ void TParagraph_string::tokenize() } break; } - if (add_now >= start) + if (add_now >= start) { const TString& tok = sub(start, add_now); tmp.add(tok); tmp.rtrim(); // Preserva gli spazi iniziali dopo un a capo forzato da \n - start = add_now + (_str[add_now] <= ' '); + start = add_now + (_str[add_now] < ' '); last_space = start; - } + } } tmp.rtrim(); TToken_string::operator=(tmp);