lmi-commits
[Top][All Lists]
Advanced

[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);



reply via email to

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