From 85beac7107e3965520048cc2ac5892fb89b5be14 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 18 Jul 2024 00:16:12 -0400 Subject: [PATCH] compatibility with Qt-5.12 and Ubuntu 20.04LTS --- tools/lammps-gui/imageviewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lammps-gui/imageviewer.cpp b/tools/lammps-gui/imageviewer.cpp index 104f0d9063..388f4251ae 100644 --- a/tools/lammps-gui/imageviewer.cpp +++ b/tools/lammps-gui/imageviewer.cpp @@ -423,7 +423,7 @@ void ImageViewer::do_rot_up() void ImageViewer::cmd_to_clipboard() { - auto words = last_dump_cmd.split(" ", Qt::SkipEmptyParts); + auto words = last_dump_cmd.split(" "); QString blank = QStringLiteral(" "); int modidx = words.indexOf("modify"); int maxidx = words.size();