lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master aef4bd7 3/7: Write whitespace before and afte


From: Greg Chicares
Subject: [lmi-commits] [lmi] master aef4bd7 3/7: Write whitespace before and after binary operators
Date: Mon, 12 Feb 2018 07:15:10 -0500 (EST)

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

    Write whitespace before and after binary operators
---
 miscellany.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/miscellany.cpp b/miscellany.cpp
index d8c8cd1..69bdc29 100644
--- a/miscellany.cpp
+++ b/miscellany.cpp
@@ -218,8 +218,8 @@ int get_needed_pages_count
     // these rows, in the last by one page.
     if(1 < num_pages)
         {
-        auto const rows_on_last_page = total_rows - (num_pages - 
1)*used_per_page;
-        auto const free_rows = rows_per_page - groups_per_page*(rows_per_group 
+ 1);
+        auto const rows_on_last_page = total_rows - (num_pages - 1) * 
used_per_page;
+        auto const free_rows = rows_per_page - groups_per_page * 
(rows_per_group + 1);
         if(rows_on_last_page <= free_rows)
             {
             num_pages--;



reply via email to

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