commit d8da6760bcd4329a87717492446a868456173991
Author: Richard Kimberly Heck <rikih...@lyx.org>
Date:   Fri May 16 13:54:33 2025 -0400

    Fix bug #13187
---
 src/frontends/qt/GuiApplication.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiApplication.cpp 
b/src/frontends/qt/GuiApplication.cpp
index 7ce46a7d16..26900f6860 100644
--- a/src/frontends/qt/GuiApplication.cpp
+++ b/src/frontends/qt/GuiApplication.cpp
@@ -2638,8 +2638,9 @@ void GuiApplication::createView(bool autoShow, int 
view_id)
                d->global_menubar_->releaseKeyboard();
 
        // need to reset system input method coords with the preserved one
-       // when the new view is the second one or later
-       if (d->views_.size() > 0)
+       // when the new view is the second one or later and a document is
+       // open in the current view
+       if (d->views_.size() > 0 && current_view_->currentWorkArea())
                current_view_->currentWorkArea()->resetInputItemGeometry(true);
 
        // create new view
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to