]> git.lyx.org Git - lyx.git/blobdiff - src/text_funcs.C
zlib stuff
[lyx.git] / src / text_funcs.C
index c9e13227546c53b938a249b40f84be93ebe5aa14..dc3f572785b3a38531d57d109f89c1d46a405da3 100644 (file)
@@ -77,7 +77,8 @@ void cursorLeftOneWord(LyXCursor & cursor, ParagraphList const & pars)
             pit->isHfill(pos - 1))) {
                --pos;
        } else if (!pos) {
-               if (pit != pars.begin()) {
+               // cast only for BSD's g++ 2.95
+               if (pit != const_cast<ParagraphList &>(pars).begin()) {
                        --pit;
                        pos = pit->size();
                }
@@ -99,7 +100,9 @@ void cursorRightOneWord(LyXCursor & cursor, ParagraphList const & pars)
 
        // CHECK See comment on top of text.C
 
-       if (pos == pit->size() && boost::next(pit) != pars.end()) {
+       // cast only for BSD's g++ 2.95
+       if (pos == pit->size() &&
+               boost::next(pit) != const_cast<ParagraphList &>(pars).end()) {
                ++pit;
                pos = 0;
        } else {