[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_);
- [lmi-commits] [lmi] master updated (05e57fd -> 0c90de6), Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master 1480161 06/13: Add more detail to a comment,
Greg Chicares <=
- [lmi-commits] [lmi] master bb36d25 02/13: Assert that measure-only and render passes have the same side effects, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master 86ed6fe 01/13: Correct a comment, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master fad1828 03/13: Explicitly assert some implicit assumptions, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master b0c3633 05/13: Improve documentation, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master d5096d9 11/13: Paste out to spreadsheet: show dates as YYYYMMDD, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master d92a865 09/13: Grow only multiline "Comments" control, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master a5d5799 10/13: Widen all date-picker controls, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master 274f13e 04/13: Assert that the clipping width is nonnegative, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master 6ac7331 07/13: Use a dummy name for a dummy variable, Greg Chicares, 2018/05/08
- [lmi-commits] [lmi] master 0c90de6 13/13: Designate release candidate 20180508T2349Z, Greg Chicares, 2018/05/08