lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master d5a3be5: Do not print any column with zero wi


From: Greg Chicares
Subject: [lmi-commits] [lmi] master d5a3be5: Do not print any column with zero width
Date: Mon, 20 Aug 2018 16:38:19 -0400 (EDT)

branch: master
commit d5a3be541c4ce8ab635e7c949eca378b4a03cf6b
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Do not print any column with zero width
    
    Prevented zero-width columns from printing. It was necessary to do this
    explicitly for columns whose width set_column_widths() set to zero when
    it found no room to print them.
---
 wx_table_generator.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index 4c3c2ec..234aed6 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -432,7 +432,7 @@ void wx_table_generator::do_output_single_row
         {
         table_column_info const& ci = all_columns().at(i);
         std::string const& s = values[i];
-        if(!s.empty())
+        if(!s.empty() && 0 != ci.col_width())
             {
             int x_text = pos_x;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]