[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
- [lmi-commits] [lmi] master updated (132fcb2 -> 7146202), Greg Chicares, 2018/04/22
- [lmi-commits] [lmi] master fffcb59 2/6: Consolidate documentation, Greg Chicares, 2018/04/22
- [lmi-commits] [lmi] master 7146202 6/6: Explain the connection between "variable" and "expand", Greg Chicares, 2018/04/22
- [lmi-commits] [lmi] master da9e57d 4/6: Improve documentation, resolving a question or two, Greg Chicares, 2018/04/22
- [lmi-commits] [lmi] master 5c0c360 5/6: Resolve several questions, Greg Chicares, 2018/04/22
- [lmi-commits] [lmi] master c902746 1/6: Add and use is_variable_width() const accessor, Greg Chicares, 2018/04/22
- [lmi-commits] [lmi] master 24dacaa 3/6: Consolidate 'total_width_' commentary,
Greg Chicares <=