]> git.lyx.org Git - lyx.git/blobdiff - src/FontList.cpp
* Paragraph: reserve memory by chunks of 100 chars. This improve the loading of big...
[lyx.git] / src / FontList.cpp
index 7d46e8bf0ccd04876595ccde67bb7a31223ee060..d6e7eb15995733cb823a5ffa7706997a27af7fed 100644 (file)
@@ -122,6 +122,14 @@ void FontList::decreasePosAfterPos(pos_type pos)
 }
 
 
+void FontList::setRange(pos_type startpos, pos_type endpos, Font const & font)
+{
+       // FIXME: Optimize!!!
+       for (pos_type pos = startpos; pos != endpos; ++pos)
+               set(pos, font);
+}
+
+
 void FontList::set(pos_type pos, Font const & font)
 {
        // No need to simplify this because it will disappear