+2003-07-26 Asger Alstrup <alstrup@local>
+
+ * rowpainter.C (paintRows): Change algorithm to work directly on
+ the insets rather than asking every character in the document
+ whether its an inset.
+
2003-07.26 Alfredo Braunstein <abraunst@libero.it>
* buffer.C (openFileWrite): factorize some code
// compute inset metrics
for (; pit != end; ++pit) {
- for (int pos = 0; pos != pit->size(); ++pos) {
- if (pit->isInset(pos)) {
- Dimension dim;
- LyXFont font;
- MetricsInfo mi(perv(bv), font, text.workWidth());
- pit->getInset(pos)->metrics(mi, dim);
- }
+ InsetList & insetList = pit->insetlist;
+ InsetList::iterator ii = insetList.begin();
+ InsetList::iterator iend = insetList.end();
+ for (; ii != iend; ++ii) {
+ Dimension dim;
+ LyXFont font;
+ MetricsInfo mi(perv(bv), font, text.workWidth());
+ ii->inset->metrics(mi, dim);
}
}
#else