lmi-commits
[Top][All Lists]
Advanced

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



reply via email to

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