lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 1e8b575 3/8: Use private interface in impleme


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 1e8b575 3/8: Use private interface in implementation
Date: Mon, 6 Aug 2018 18:36:23 -0400 (EDT)

branch: master
commit 1e8b575850f76ac08d3ff13ab92ec9cb65fb0248
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Use private interface in implementation
    
    Changed one line to call private do_output_vert_separator() instead of
    public output_vert_separator(). Now (disregarding the trivial
    row_height() accessor), except for text_rect(), the public and private
    interfaces are disjoint, and that property will soon prove useful for
    refactoring.
---
 wx_table_generator.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index 7c6c0f5..19509df 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -240,7 +240,7 @@ void wx_table_generator::output_highlighted_cell
 
     dc_.DrawLabel(value, text_rect(column, y), wxALIGN_CENTER_HORIZONTAL);
 
-    output_vert_separator(column, y);
+    do_output_vert_separator(cell_pos_x(column), y, y + row_height_);
 }
 
 /// Render a single row with the given values at the given position.



reply via email to

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