]> git.lyx.org Git - features.git/blobdiff - src/Text2.cpp
Typo
[features.git] / src / Text2.cpp
index cc5340317a0956e688fa87537b6fdb2ec6941003..902674060ab171487fd222c07f288cd4c54764c9 100644 (file)
@@ -425,6 +425,7 @@ void Text::toggleFree(Cursor & cur, Font const & font, bool toggleall)
                cur.clearSelection();
                cur.top() = resetCursor;
                cur.resetAnchor();
+               cur.setCurrentFont();
        }
 }
 
@@ -934,7 +935,7 @@ bool Text::deleteEmptyParagraphMechanism(Cursor & cur,
 
 void Text::deleteEmptyParagraphMechanism(pit_type first, pit_type last, bool trackChanges)
 {
-       pos_type last_pos = static_cast<pos_type>(pars_[last].size() - 1);
+       pos_type last_pos = pars_[last].size() - 1;
        deleteEmptyParagraphMechanism(first, last, 0, last_pos, trackChanges);
 }