restore saved text cursor when initializing system before creating an image

This commit is contained in:
Axel Kohlmeyer
2023-10-07 13:33:43 -04:00
parent f688a28d7f
commit 3e6997e98b

View File

@ -1112,6 +1112,7 @@ void LammpsGui::render_image()
"Cannot create snapshot image without a system box");
return;
}
ui->textEdit->setTextCursor(saved);
}
// if configured, delete old image window before opening new one
if (QSettings().value("imagereplace", true).toBool()) delete imagewindow;