46:19be47c9bab7 | 47:35b968619b0c |
---|---|
145 int rows = length() / cols; | 145 int rows = length() / cols; |
146 | 146 |
147 if (length() % cols != 0) | 147 if (length() % cols != 0) |
148 rows++; | 148 rows++; |
149 | 149 |
150 print_to ("logfile", "Line of %1 chars with %2 cols is %3 rows\n", length(), cols, max (rows, 1)); | |
150 return max (rows, 1); | 151 return max (rows, 1); |
151 } | 152 } |