bool CCrystalTextView::
CoverLength(int nTopLine, int nLines, int min_length)
{
- const int nLineCount = (std::min)(nTopLine + nLines, GetLineCount());
- for (int I = nTopLine; I != nLineCount; I++) {
- if (GetLineActualLength(I) >= min_length)
- return true;
+ const int nLineCount = (std::min)(nTopLine + nLines, GetLineCount ());
+ for (int I = nTopLine; I != nLineCount; I++)
+ {
+ if (GetLineActualLength (I) >= min_length)
+ return true;
}
- return false;
+ return false;
}
CCrystalTextView *CCrystalTextView::