[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 686d9df 1/6: Tighten an assertion that was to
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 686d9df 1/6: Tighten an assertion that was too lax |
Date: |
Thu, 23 Aug 2018 19:59:30 -0400 (EDT) |
branch: master
commit 686d9df264acc566e58f55f7f02b8b1664941e96
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Tighten an assertion that was too lax
See:
https://lists.nongnu.org/archive/html/lmi/2018-08/msg00000.html
---
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 d015b98..fd57077 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -345,7 +345,7 @@ wxRect wx_table_generator::external_text_rect(std::size_t
a_column, int y) const
wxRect wx_table_generator::text_rect(int column, int y) const
{
- LMI_ASSERT(column <= lmi::ssize(all_columns()));
+ LMI_ASSERT(column < lmi::ssize(all_columns()));
wxRect z = cell_rect(column, y).Deflate(dc().GetCharWidth(), 0);
z.Offset(0, (row_height_ - char_height_)/2);
return z;
- [lmi-commits] [lmi] master updated (4da8dbb -> b00dae4), Greg Chicares, 2018/08/23
- [lmi-commits] [lmi] master 686d9df 1/6: Tighten an assertion that was too lax,
Greg Chicares <=
- [lmi-commits] [lmi] master e6271b3 4/6: Move a couple lines of documentation, Greg Chicares, 2018/08/23
- [lmi-commits] [lmi] master 43dcd1b 5/6: Make all table_column_info data members private and non-const, Greg Chicares, 2018/08/23
- [lmi-commits] [lmi] master b00dae4 6/6: Use braces in ctor-initializers, Greg Chicares, 2018/08/23
- [lmi-commits] [lmi] master 212d81a 3/6: Pass the bulky argument of set_column_widths() by const reference, Greg Chicares, 2018/08/23
- [lmi-commits] [lmi] master 8fad1e6 2/6: Return a vector from set_column_widths(), Greg Chicares, 2018/08/23