lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 24dacaa 3/6: Consolidate 'total_width_' comme


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 24dacaa 3/6: Consolidate 'total_width_' commentary
Date: Sun, 22 Apr 2018 14:56:59 -0400 (EDT)

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

    Consolidate 'total_width_' commentary
---
 wx_table_generator.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index ade6fdc..a0c144a 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -180,11 +180,7 @@ wxRect wx_table_generator::text_rect(std::size_t column, 
int y)
 // meanings (written before each variable, as in header documentation):
 //
     // ctor parameter:
-    // The table has the given total width
-    // Comes from pdf_writer_wx::get_page_width() which sets it thus:
-    //   total_page_size_.x - 2 * horz_margin;
-    // where
-    //   total_page_size_   {pdf_dc_.GetSize()}
+    // max table width (page width minus horizontal page margins)
 // const    total_width_
     // Used to prevent this function from being called more than once.
 // mutable  column_widths_already_computed_
@@ -263,7 +259,6 @@ void wx_table_generator::do_compute_column_widths()
 // As originally laid out, the table is too wide. Calculate the number
 // of pixels by which it overflows--for the whole table:
         auto const overflow = total_fixed - total_width_;
-// where total_width_ is the width of the page, e.g., 210mm for A4
 // and total_fixed is width of all fixed-width columns, as originally laid out
 
         // If we have only fixed columns, try to make them fit by decreasing



reply via email to

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