sources/coloredline.cpp

changeset 48
02009f1ec2b7
parent 47
35b968619b0c
child 63
0da5f358f298
equal deleted inserted replaced
47:35b968619b0c 48:02009f1ec2b7
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));
151 return max (rows, 1); 150 return max (rows, 1);
152 } 151 }

mercurial