[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 0188828 07/13: Improve alignment
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 0188828 07/13: Improve alignment |
Date: |
Sat, 12 May 2018 12:00:22 -0400 (EDT) |
branch: master
commit 01888280ba1383d175d36af325aac925357f9e75
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Improve alignment
---
wx_table_generator.cpp | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index 11ed42e..c4ed2f7 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -232,8 +232,8 @@ void increase_to_if_smaller(T& first, T second)
wx_table_generator::wx_table_generator
(wxDC& dc
- ,int left_margin
- ,int total_width
+ ,int left_margin
+ ,int total_width
)
:dc_(dc)
,left_margin_(left_margin)
@@ -333,7 +333,6 @@ void wx_table_generator::add_column
if(0 != width)
{
increase_to_if_smaller(width,
dc_.GetMultiLineTextExtent(header).x);
-
width += 2 * column_margin();
}
}
@@ -741,7 +740,7 @@ void wx_table_generator::do_output_values
void wx_table_generator::output_vert_separator
(std::size_t before_column
- ,int y
+ ,int y
)
{
LMI_ASSERT(before_column <= all_columns().size());
@@ -790,7 +789,7 @@ void wx_table_generator::output_horz_separator
/// Render the headers at the given position and update it.
void wx_table_generator::output_header
- (int* pos_y
+ (int* pos_y
,oenum_render_or_only_measure output_mode
)
{
@@ -911,7 +910,7 @@ void wx_table_generator::output_super_header
/// same number of them as the number of columns.
void wx_table_generator::output_row
- (int* pos_y
+ (int* pos_y
,std::vector<std::string> const values
)
{
- [lmi-commits] [lmi] master updated (0c90de6 -> 45b086a), Greg Chicares, 2018/05/12
- [lmi-commits] [lmi] master 914ea72 02/13: Remove a "helper" lambda, Greg Chicares, 2018/05/12
- [lmi-commits] [lmi] master 990dbe2 01/13: Improve encapsulation, Greg Chicares, 2018/05/12
- [lmi-commits] [lmi] master 0188828 07/13: Improve alignment,
Greg Chicares <=
- [lmi-commits] [lmi] master be2f05a 09/13: Improve a variable's name, Greg Chicares, 2018/05/12
- [lmi-commits] [lmi] master e00fb75 05/13: Spell 'color' one way only, Greg Chicares, 2018/05/12
- [lmi-commits] [lmi] master cccd64c 04/13: Remove disused header, Greg Chicares, 2018/05/12
- [lmi-commits] [lmi] master 111f2bd 03/13: Correct a misleading comment, Greg Chicares, 2018/05/12
- [lmi-commits] [lmi] master 02c6f2e 12/13: Pass column data to table generator as an aggregate parameter, Greg Chicares, 2018/05/12
- [lmi-commits] [lmi] master 45b086a 13/13: Simplify logic, Greg Chicares, 2018/05/12
- [lmi-commits] [lmi] master 5c9a0db 08/13: Improve typography, Greg Chicares, 2018/05/12
- [lmi-commits] [lmi] master 8e0a46c 11/13: Regularize names, Greg Chicares, 2018/05/12
- [lmi-commits] [lmi] master e7b741f 10/13: Write 'const' after the type it modifies, Greg Chicares, 2018/05/12
- [lmi-commits] [lmi] master 0870adc 06/13: Document function definitions, Greg Chicares, 2018/05/12