lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 1480161 06/13: Add more detail to a comment


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 1480161 06/13: Add more detail to a comment
Date: Tue, 8 May 2018 19:51:05 -0400 (EDT)

branch: master
commit 1480161e5d71984c90fef5bc9dbecb1d27757246
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Add more detail to a comment
---
 wx_table_generator.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index 925965f..e19abf6 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -369,7 +369,9 @@ wxRect wx_table_generator::cell_rect(std::size_t column, 
int y)
 
     // Note: call do_get_cell_x() here and not from the wxRect ctor arguments
     // list to ensure that the column width is initialized before it is used
-    // below.
+    // below (because calling do_get_cell_x() calculates column widths as a
+    // side effect, but function arguments are evaluated in unspecified
+    // order).
     int const x = do_get_cell_x(column);
 
     return wxRect(x, y, all_columns().at(column).col_width(), row_height_);



reply via email to

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