[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 5c9a0db 08/13: Improve typography
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 5c9a0db 08/13: Improve typography |
Date: |
Sat, 12 May 2018 12:00:22 -0400 (EDT) |
branch: master
commit 5c9a0dbf230e9e8aaf955333d88a2f59e39b538e
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Improve typography
On group quotes, prevented the 'p' in "Participant" and the 'g' in "Age"
from colliding with the heavy ruling below them. Borders should be drawn
within interlinear space, but had used the beard line in this case.
---
wx_table_generator.cpp | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index c4ed2f7..cfcd450 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -793,7 +793,11 @@ void wx_table_generator::output_header
,oenum_render_or_only_measure output_mode
)
{
- int const anticipated_pos_y = *pos_y + row_height() * max_header_lines_;
+ int const anticipated_pos_y =
+ *pos_y
+ + draw_separators_
+ + row_height() * max_header_lines_
+ ;
switch(output_mode)
{
@@ -855,9 +859,9 @@ void wx_table_generator::output_header
// Finally draw the separators above and (a double one) below them.
if(draw_separators_)
{
- do_output_horz_separator(left_margin_, x, y_top );
- do_output_horz_separator(left_margin_, x, *pos_y - 1);
- do_output_horz_separator(left_margin_, x, *pos_y );
+ do_output_horz_separator(left_margin_, x, y_top);
+ do_output_horz_separator(left_margin_, x, *pos_y); *pos_y += 1;
+ do_output_horz_separator(left_margin_, x, *pos_y);
}
LMI_ASSERT(anticipated_pos_y == *pos_y);
- [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, 2018/05/12
- [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 <=
- [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