]> git.lyx.org Git - lyx.git/blobdiff - src/Text2.cpp
Update toolbar and properly reset focus when find widget is closed (#12396)
[lyx.git] / src / Text2.cpp
index cc5340317a0956e688fa87537b6fdb2ec6941003..66dd083d4ad6896f86152e535237609b204adb79 100644 (file)
@@ -934,7 +934,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);
 }