]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
Fix crash on OS-switch of dark/light mode (#12786)
[lyx.git] / src / Cursor.cpp
index ad46e8c50567e61af367f7b1c90e26133393086d..7afefcf372e3b7cd26558c69af60f8dd28ecf55d 100644 (file)
@@ -322,6 +322,7 @@ DocIterator CursorData::selectionEnd() const
        if (di.depth() > depth()) {
                di.resize(depth());
                ++di.pos();
+               di.boundary(true);
        }
        return di;
 }