]> git.lyx.org Git - lyx.git/blobdiff - src/text2.C
* remove various xforms relicts, in particular:
[lyx.git] / src / text2.C
index 5166ac1ee98d7a695ba641820f92a6a71a3b30bb..68d04bd11233fc91dbbaa1ab233b7d6ebc20a3ba 100644 (file)
@@ -212,7 +212,9 @@ LyXFont LyXText::getFont(Paragraph const & par, pos_type const pos) const
                        break;
                }
        // Realize against environment font information
-       if (pit < pars_.size())
+       // NOTE: the cast to pit_type should be removed when pit_type
+       // changes to a unsigned integer.
+       if (pit < pit_type(pars_.size()))
                font.realize(outerFont(pit, pars_));
 
        // Realize with the fonts of lesser depth.